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

    How to get Full Name parameters?

    Asked by NGHS on October 06, 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 target="_blank" href="//form.jotformpro.com/form/1234?fullName[0]={firstName}&fullName[1]={lastName}">Click here!</a>

     

    Thanks!

    name parameters separating full
  • Profile Image

    Answered by Ben on October 06, 2015 at 01: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

  • Profile Image

    Answered by NGHS on October 06, 2015 at 02:22 PM

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

  • Profile Image

    Answered by NGHS on October 06, 2015 at 03: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!

  • Profile Image
    JotForm Support

    Answered by Kiran on October 06, 2015 at 05: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!

  • Profile Image

    Answered by NGHS on October 06, 2015 at 05: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}

  • Profile Image

    Answered by Ben on October 06, 2015 at 06: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 :)

  • Profile Image

    Answered by NGHS on October 07, 2015 at 09: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.

  • Profile Image
    JotForm Support

    Answered by Kiran on October 07, 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!!