How to get Full Name parameters?

  • NGHS
    Asked on October 6, 2015 at 11:22 AM

    How do I pull out the first and last name fields from a Full Name field array?

    I want to build a link in the autoresponder that takes the registrant to another form, this time with their information autopopulated, like this: 

    <a href="//form.jotformpro.com/form/1234?fullName[0]={firstName}&fullName[1]={lastName}">Click here!</a>

     

    Thanks!

  • Ben
    Replied on October 6, 2015 at 1:47 PM

    To do that, you would need to use the first and last prefix.

    This means that the first name would be {fullName:first} and the last name would be {fullName:last}

    You can read more about URL prepopulating here: Prepopulating fields to your JotForm via URL parameters

    I would also like to suggest checking out this tool that will help you in building the links: PrePopulate Fields

  • NGHS
    Replied on October 6, 2015 at 2:22 PM

    Ben, you are consistently awesome. I'll check that out. Thanks for always being so helpful, sir!

  • NGHS
    Replied on October 6, 2015 at 3:56 PM

    Ben, can you help me with the Phone Number field?

    I need to do the same thing. :first and :last doesn't work for that one.

     

    Thanks!

  • Kiran Support Team Lead
    Replied on October 6, 2015 at 5:00 PM

    First and last prefixes will work only for Full Name field. For Phone number field, it should be area and phone as below :

    {phoneNumber:area} and {phoneNumber:phone}

    Please make sure that you are using the correct field ID/Names. You may refer to the guide below for getting correct field ID/Names on your form.

    http://www.jotform.com/help/146-How-to-find-Field-IDs-Names

    Hope this information helps!

  • NGHS
    Replied on October 6, 2015 at 5:04 PM

    Kiran, I'll give that a shot - THANKS!

     

    ?yourName[0]={fullName:first}&amp;yourName[1]={fullName:last}&amp;email={email}&amp;phoneNumber[0]={phoneNumber:area}&amp;phoneNumber[1]={phoneNumber:phone}

  • Ben
    Replied on October 6, 2015 at 6:25 PM

    In my colleague's name you are welcome.

    Now I would just like to mention that most of the URL above is correct, but I would like to point out something:

    ?yourName[0]={fullName:first}&amp;yourName[1]={fullName:last}&amp;email={email}&amp;phoneNumber[0]={phoneNumber:area}&amp;phoneNumber[1]={phoneNumber:phone}

    should be used as:

    ?yourName[0]={fullName:first}&yourName[1]={fullName:last}&email={email}&phoneNumber[0]={phoneNumber:area}&phoneNumber[1]={phoneNumber:phone}

    The &amp; is the HTML entity used to represent the & sign. While the entity has many uses, in URL that would be an error.

    Of course if you give us the link to your form we could check if the rest of the values are OK or not as well (if that is needed).

    Do let us know how it goes :)

  • NGHS
    Replied on October 7, 2015 at 9:22 AM

    Ah, yes. I think the Email editor in Jotform converted that ampersand. Ben, thanks for the help. Your customer service is on point, sir.

  • Kiran Support Team Lead
    Replied on October 7, 2015 at 11:41 AM

    You are welcome. I believe the issue is now resolved for you. If you still need any further assistance, please do not hesitate to let us know. We will be happy to help.

    Thanks!!