URL data pass of multiple value questions

  • Profile Image
    millarmiller
    Asked 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

  • Profile Image
    ashwin_d
    Answered 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!