Redirect to a new page from iframe

  • handsomejackmi
    Asked on June 21, 2019 at 3:22 PM
    I have an additional question - can we also set somehow redirect url on fly while displaying iframe? As we want to redirect each user to individual and unique link 
  • John Support Team Lead
    Replied on June 21, 2019 at 3:47 PM

    My understanding is that, you want to make redirects to a new window, is that correct?

    If so, you can customize the Thank You Page to redirect them to an external link on a new window once link is clicked. Here's how it's done:

    1. In the Form Builder, go to Settings > Thank you page

    2. Click the <> symbol in the Thank you page to edit its source code.

    Please see example:

    1561146211new window redirect Screenshot 10

    Please let us know if you have a different concern in mind.

     

  • handsomejackmi
    Replied on June 21, 2019 at 4:03 PM

    Hey!

    Yeah I need exactly that function but I want to set it programmatically, while displaying the iframe with the form, as each user have to be redirected to its own unique page


    Thanks!

  • John Support Team Lead
    Replied on June 21, 2019 at 7:47 PM

    Thank you for the additional details.

    I think a lightbox form could come in handy with this requirement. Please refer to these guides:

    How-to-Create-a-Lightbox-Form

    How-to-Auto-popup-a-Lightbox-Form

    Please give it a try and let us know if it satisfies the requirement.

  • handsomejackmi
    Replied on June 22, 2019 at 3:01 AM

    Thanks for your reply, however I cannot find there any mentioned of redirect, if it's somehow possible can you please point out?

    Our requirements are:

    1) To be able to specify default field values on fly when displaying the form


    2) To redirect user to set on fly url unique to each user after user completes the form


    Thanks!



  • roneet
    Replied on June 22, 2019 at 1:44 PM

    1) To be able to specify default field values on fly when displaying the form.

    To be able to display default values while displaying the Form you can pass parametrs via the Form URL in the iFrame code which you are using to embed.

    Guide: Prepopulating the fields to your JotForm via URL parameters

    <iframe
          id="JotFormIFrame-914682094XXXXX"
          title="Demo Form"
          onDISABLEDload="window.parent.scrollTo(0,0)"
          allowtransparency="true"
          allowfullscreen="true"
          allow="geolocation; microphone; camera"
          src="https://form.jotform.com/914682094XXXX?firstName=Roneet Shaw&email=roneet@jotform.com"
          frameborder="0"
          style="width: 1px;
          min-width: 100%;
          height:539px;
          border:none;"
          scrolling="no"
        >
        </iframe>


    2) To redirect user to set on fly url unique to each user after user completes the form.

    What type of unique URL you want? Do you want to display a qunique message in each unique URL? How would the user use this unique URL? Do you want them to use this unique session to fill the Form at a later stage?

    Looking forward to your response.

    Thanks.