What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    URL data pass of multiple value questions

    Asked by millarmiller on February 12, 2014 at 11:03 PM

    I'm trying to pass data from a parent form to a daughter form, using URL tags. I've got this to work for single value fields, like email addresses, but I haven't been able to make it work for multi value fields like individual's names.

    I currently have 

    http://form.jotformpro.com/form/xxxxxxxxx?pleaseSelect={pleaseSelect}&whatType1={whatType1}&whatIs23[prefix]={whatIs23[prefix]}&whatIs23[first]={whatIs23[first]}&whatIs23[middle]={whatIs23[middle]}&whatIs23[last]={whatIs23[last]}&whatIs23[suffix]={whatIs23[suffix]}

    This section works fine:

    http://form.jotformpro.com/form/xxxxxxxxx?pleaseSelect={pleaseSelect}&whatType1={whatType1}

    The following section doesn't pass the information through:

    &whatIs23[prefix]={whatIs23[prefix]}&whatIs23[first]={whatIs23[first]}&whatIs23[middle]={whatIs23[middle]}&whatIs23[last]={whatIs23[last]}&whatIs23[suffix]={whatIs23[suffix]}

    I tried changing it to whatIs23[prefix]={whatIs23}, which predictably tried to fit all of the text of the answer into the prefix field.

    I also considered whatIs23[prefix]={whatIs23}[prefix], but this came out the same as above, which suggest I have to get the prefix only trigger into the {}

    I'm quite obviously floundering around, anyone got an idea into what I'm doing wrong?

    Cheers, 

    Rob

    email parent section same
  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 13, 2014 at 01:11 AM

    Hello Rob,

    You cannot read the sub label values the same way you populate it in URL parameters. The sub label field should be read as {whatIs23:last} and the correct syntax to dynamically populate a last name fields should be whatIs23[last]={whatIs23:last}

    The URL parameter in your case should work with the following URL:

    http://form.jotformpro.com/form/xxxxxxxxx?pleaseSelect={pleaseSelect}&whatType1={whatType1}&whatIs23[prefix]={whatIs23:prefix}&whatIs23[first]={whatIs23:first}&whatIs23[middle]={whatIs23:middle}&whatIs23[last]={whatIs23:last}&whatIs23[suffix]={whatIs23:suffix}

    Do test and get back to us if this works for you.

    Thank you!