When redirecting to a URL based on condition, can I have that open in a new window?

  • Profile Image
    jtmku
    Asked on April 10, 2012 at 12:57 PM

    I have a client password field that will redirect to a custom URL based on what is entered in the field.  I would like this redirect to open in a new window.

  • Profile Image
    pinoytech
    Answered on April 10, 2012 at 01:21 PM

    Hi,

    I clone your form and made minor changes of your condition/s. Feel free to clone the form if you like it.

    http://www.jotform.me/form/21005626686453

    You may take a look also on this related thread for more information:

    http://www.jotform.com/answers/19758-How-can-I-open-a-webpage-in-a-new-window-when-a-user-clicks-submit-on-a-form

    If you need further assistance, feel free to contact us anytime.

    Thank you for using JotForm!

  • Profile Image
    jtmku
    Answered on April 10, 2012 at 03:02 PM
    Well now my IP address has been banned from jotform.
  • Profile Image
    pinoytech
    Answered on April 10, 2012 at 03:46 PM

    Sorry for the inconvenience that may have caused. I have now activate your account.

    Thank you!

  • Profile Image
    jtmku
    Answered on April 10, 2012 at 04:18 PM

    I used the cloned form, but it still does not open a new window.

  • Profile Image
    jeanettebmz
    Answered on April 10, 2012 at 05:14 PM

    Please follow these steps:

    1. You would need to embed the the full source code of your form.

    2. Use the example code below and insert it inside the body tag of your custom page (hosted in your server)

    <onLoad="window.open('http://www.example.com/example.htm','mywindow','width=400,height=200')" />


    3. Look for the first form tag and insert thhe following code: 

     

    onSubmit="window.open('http://www.example.com/example.htm','mywindow','width=400,height=200')"

    so that it becomes:

    <class="jotform-form" action="http://www.jotform.com/submit.php" method="post" name="form_10424741277" id="10424741277" accept-charset="utf-8onSubmit="window.open('http://www.example.com/example.htm','mywindow','width=400,height=200')">

    The highlighted numbers represent the Form ID, so change it accordingly.

    While the URL http://www.example.com/example.htm  represents the page you want to pop up once the Submit button is clicked.

    Should you need further assistance , let us know

    Jeanette