Skip to main content
Announcements
Qlik Announces Qlik Talend Cloud and Qlik Answers: LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
paul_vans267
Partner - Contributor II
Partner - Contributor II

QlikView Extensions onSubmit Function call

Good morning,

I am trying to learn to build basic QlikView Extensions.  I have followed the excellent four part series by Stephen Redmond, "Beginners Guide to QlikView Extension Objects".

I am now trying to extend this by adding a textbox and submit button (which I have achieved) and then call a function when the submit button is clicked. The endpoint being gathering the information entered by the user to send to a WebService.

Using the code below, I have a textbox and submit button:

html += "<form action='/action_page.php' onsubmit='myFunction()'> Enter name: <input type='text' name='fname'> <input type='submit' value='Submit'></form>"

html += "<script>function myFunction() { alert('The form was submitted');}</script>"

However when I click submit, I get the error: 'myFunction' is undefined.

Please can someone help me either successfully trigger the myFunction call, or alternatively point me in the direction of a tutorial on how to achieve this correctly?

I have attached my full script.js if helpful.

Thank you very much.

Paul

0 Replies