Prepopulating fields in a linked form

  • Profile Image
    MBWHS
    Asked on December 02, 2016 at 06: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?

     

  • Profile Image
    ashwin_d
    Answered on December 02, 2016 at 07: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!

  • Profile Image
    MBWHS
    Answered on December 02, 2016 at 07: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

  • Profile Image
    owen
    Answered on December 02, 2016 at 09: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

     

  • Profile Image
    Katie
    Answered on December 02, 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 

  • Profile Image
    liyam
    Answered on December 03, 2016 at 01: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.

    Thanks.

  • Profile Image
    MBWHS
    Answered on December 05, 2016 at 07: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.1

  • Profile Image
    Welvin
    Answered on December 05, 2016 at 08: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.