How could I clear these values after someone submits the form.

  • slfattorneys
    Asked on June 26, 2015 at 3:01 PM
    1. So, how could I clear these values after someone submits the form.
  • Elton Support Team Lead
    Replied on June 26, 2015 at 4:22 PM

    You can clear it when you implement form clear function. You can try the following code. Add it after function validateForm(url,w,h){ on the code provided by my colleague on the main thread.

    $("51749051922961").reset();

    Example:

    <script type='text/javascript'>

          //this is where the popup is triggerred

          function validateForm(url,w,h){

          $("51749051922961").reset();

            var left = (screen.width/2)-(w/2);

            var top = (screen.height/4)-(h/4);

            newwindow=  window.open (url, 'title', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

            if (window.focus) {newwindow.focus()}

            return false;

          }

    </script>

  • slfattorneys
    Replied on June 26, 2015 at 6:04 PM

    Excellent!! Thank youElton & Sammy.

    This portion of my issues are now resolved.

     

    Many thanks,

    Chet

  • Chriistian Jotform Support
    Replied on June 26, 2015 at 8:15 PM

    Hi Chet, 

    On behalf of my colleagues, you are welcome. Glad to hear that the issue was solved. 

     

    Do let us know if you need further assistance.

     

    Regards.