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

  • Profile Image
    slfattorneys
    Asked on June 26, 2015 at 03:01 PM
    1. So, how could I clear these values after someone submits the form.
  • Profile Image
    EltonCris
    Answered on June 26, 2015 at 04: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>

  • Profile Image
    slfattorneys
    Answered on June 26, 2015 at 06:04 PM

    Excellent!! Thank youElton & Sammy.

    This portion of my issues are now resolved.

     

    Many thanks,

    Chet

  • Profile Image
    Chriistian
    Answered on June 26, 2015 at 08: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.