Prepopulating fields in a linked form

  • MBWHS
    Asked on December 2, 2016 at 6:22 AM

    Hi 

    I have three forms that are linked.  The first form is the registration page for the second form so that data isn't lost if someone stops part way through.  I am using the UR and email address as the identifiers and this seems to be working fine.

    Form 1 is https://form.jotform.co/63286719428871

    Form 2 is https://form.jotform.co/63067135162855 and is linked with the following https://form.jotform.co/63067135162855?session={email}&urNumber634={urNumber3}&email={email}

    This works well.  However in form 2 I need to link to a separate form and want to use the same identifiers of UR and email address.  The form is https://form.jotform.co/63077053498867  and I can't seem to be able to get it to prepoulate https://form.jotform.co/63077053498867?urNumber77={ur2nd}&email={input651}

    I even set up hidden UR and email fields in case it was an issue that the original UR and email fields were prepopulated from a previous form but that doesn't work either.  When I back into look at the link it has changed to 

     

    https://form.jotform.co/63077053498867?urNumber77=%7Bur2nd%7D&email=%7Binput651%7D

     

    Can you please help?

     

  • Ashwin JotForm Support
    Replied on December 2, 2016 at 7:15 AM

    Hello MBWHS,

    I did check your form #63067135162855 but could not find where you have added the URL to populate the fields of third form.

    I did check the conditions and also all the three email alerts you have in your form but could not find the URL to populate form. Please guide us where we can locate the URL you have added and we will take a look.

    Please note the URL to populate form fields of third form which you have shared above does not have the correct field name and it should be:

    https://form.jotform.co/63077053498867?urNumber77={ur2nd}&email={email2nd651}

    We will wait for your response.

    Thank you!

  • MBWHS
    Replied on December 2, 2016 at 7:18 AM

    Hi 

    Thanks so much for getting back to me so quickly.  Sorry I should have been more specific.  its in the ?3rd page in when it asks if you have ever been pregnant, then it asks if your last baby was at the mater....say no...then put number 1 in and the link should appear!  Not surprising you couldn't find it!  Thanks again

  • omerorkun JotForm Data Scientist
    Replied on December 2, 2016 at 9:04 AM

    Hi,

    I have found where you hyperlinked the prepopulating URL. It's "Pregnancy No.1" which appears after following your instructions. The link should be what my colleague Ashwin suggested. 

    It's not surprising that you find the link this way though:

    https://form.jotform.co/63077053498867?urNumber77=%7Bur2nd%7D&email=%7Binput651%7D

    It's about HTML encoding and in the source code the link ends up with the HTML code applied to it. For instance the HTML coding for "{"  is "%7B".

    Have you tried to inject the URL?

    https://form.jotform.co/63077053498867?urNumber77={ur2nd}&email={email2nd651}

    Please try this and let us know if you are able to prepopulate the related fields. 

    Thank you

     

  • Katie
    Replied on December 2, 2016 at 10:52 PM

    hi

    yes I did change the link to what you suggested but it still didn't work. It just puts {email} instead.

     

    thanks

     

    katie 

  • liyam
    Replied on December 3, 2016 at 1:20 AM

    Hello,

    I'm having difficulty understanding the actual situation since I can't seem to find where you have placed this https://form.jotform.co/63077053498867?urNumber77={ur2nd}&email={email2nd651} 

    Are you currently modifying your form? If in case you have placed this code within a WYSIWYG canvas such as the body content of an email or the thank you page, please check the full HTML source code of it and see to it that it is not converted to HTML ASCII code or URL encoded value as how it was explained by owen from his response.

    Prepopulating fields in a linked form Image 1 Screenshot 20

    Thanks.

  • MBWHS
    Replied on December 5, 2016 at 7:34 AM

    Hi

    Sorry the link is tricky to find.  I have explained in the post which owen read above where to locate it.  Does this make sense or are you following those instructions and unable to find it (quite possible!)?  Its hidden under some conditional formatting:

    I have attached a screen shot of the builder...hope this helps.  Its Pregnancy No.1Prepopulating fields in a linked form Image 1 Screenshot 20

  • Welvin Support Team Lead
    Replied on December 5, 2016 at 8:40 AM

    I think this type of parameter won't work in the HTML field. I've tried it, it allows you to correctly add the field name/tags. But as soon as you reload the page, the texts are automatically converted to its corresponding HTML entities. 

    Here's my test form: https://form.jotform.com/63393316512958. If you hover over the link, you'll see the issue.

    Your workaround would be to keep it as a text, not a hyperlink and just let them copy/paste the link to the address bar.