How to properly prepopulate full name field?

  • Profile Image
    Olutech808
    Asked on February 22, 2019 at 03:12 AM

    Hi, I am trying to pre-populate a name field between two forms, but I have an issue where the First Name, Initial, and Last Name from the first form are being pre-populated altogether into the First Name field of the second form.

     .

    Example of what I input into the "Full Name" field in the first form:

    First Name: John

    Middle Initial: E

    Last Name: Appleseed

     .

    The pre-populated result I get in the second form:

    First Name: John E Appleseed

    Middle Initial:

    Last Name:

    .

    .

    At the end of my link I appended:

    ?name={name}

     .

    How should I write the link to get it to pre-populate the name field correctly?

     .

    I also tried:

    ?name[first]={name[first]}&name[middle]={name[middle]}&name[last]={name[last]}

     .

    ...but it resulted in a duplication of the name in all the fields:

    First Name: John E Appleseed

    Middle Initial: John E Appleseed

    Last Name: John E Appleseed

     .

     .

    Any help is appreciated. Thanks.



    This is a re-post of a comment on Prepopulating Fields to Your JotForm via URL Parameters

  • Profile Image
    Nik_C
    Answered on February 22, 2019 at 04:28 AM

    To prepopulate the full name, the link should be constructed like this:

    15508276682019-02-22_10-26-40.png

    https://form.jotform.com/90522482158962?name[first]={name:last}&name[middle]={name:middle}&name[last]={name:last}

    So, the bolded are fields in target form, and in curly brackets is what is coming from the source form.

    Hope it helps.

    Let us know if you need any assistance.

    Thank you!

  • Profile Image
    Olutech808
    Answered on February 23, 2019 at 01:39 AM

    Thanks for the reply. While trying this out, I did come across a typo in the above example:

    https://form.jotform.com/90522482158962?name[first]={name:last}name[middle]={name:middle}&name[last]={name:last}


    Which I changed this to:

    https://form.jotform.com/90522482158962?name[first]={name:first}name[middle]={name:middle}&name[last]={name:last}


    And then your solution worked perfectly!




    Thank you so much for your help!

    Cheers.