<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic QlikView Extensions onSubmit Function call in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Extensions-onSubmit-Function-call/m-p/1856009#M1215890</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I am trying to learn to build basic QlikView Extensions.&amp;nbsp; I have followed the excellent four part series by Stephen Redmond, "Beginners Guide to QlikView Extension Objects".&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Using the code below, I have a textbox and submit button:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;html += "&amp;lt;form action='/action_page.php' onsubmit='myFunction()'&amp;gt; Enter name: &amp;lt;input type='text' name='fname'&amp;gt; &amp;lt;input type='submit' value='Submit'&amp;gt;&amp;lt;/form&amp;gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;html += "&amp;lt;script&amp;gt;function myFunction() { alert('The form was submitted');}&amp;lt;/script&amp;gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;However when I click submit, I get the error: 'myFunction' is undefined.&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;I have attached my full script.js if helpful.&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 11:58:50 GMT</pubDate>
    <dc:creator>paul_vans267</dc:creator>
    <dc:date>2021-11-05T11:58:50Z</dc:date>
    <item>
      <title>QlikView Extensions onSubmit Function call</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Extensions-onSubmit-Function-call/m-p/1856009#M1215890</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I am trying to learn to build basic QlikView Extensions.&amp;nbsp; I have followed the excellent four part series by Stephen Redmond, "Beginners Guide to QlikView Extension Objects".&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Using the code below, I have a textbox and submit button:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;html += "&amp;lt;form action='/action_page.php' onsubmit='myFunction()'&amp;gt; Enter name: &amp;lt;input type='text' name='fname'&amp;gt; &amp;lt;input type='submit' value='Submit'&amp;gt;&amp;lt;/form&amp;gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;html += "&amp;lt;script&amp;gt;function myFunction() { alert('The form was submitted');}&amp;lt;/script&amp;gt;"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;However when I click submit, I get the error: 'myFunction' is undefined.&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;I have attached my full script.js if helpful.&lt;/P&gt;
&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 11:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Extensions-onSubmit-Function-call/m-p/1856009#M1215890</guid>
      <dc:creator>paul_vans267</dc:creator>
      <dc:date>2021-11-05T11:58:50Z</dc:date>
    </item>
  </channel>
</rss>

