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 prepopulate full name field?

    Asked by sandboxlogistics on June 01, 2017 at 12:57 AM

    One thing I've noticed is if for example I have a full name (i.e.. bla_name[first] and bla_name[last]) that I cannot pull the field values separately when generating the form url on a save submission because the variable name is actually {name} and it has the full name .. therefore a link like ?name[first]={name}&name[last]={name} would pre-populate both fields with the full name... You would think this would work but it doesn't:

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



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

  • Profile Image
    JotForm Support

    Answered by ashwin_d on June 01, 2017 at 01:45 AM

    Hello,

    I'm sorry for the trouble caused to you. The correct format to populate the first name & last name fields should be:

    ?name[first]={fieldname:first}&name[last]={fieldname:last}

    Where "fieldname" is the name of your full name field of form which you are reading and "name" is the name of full name field which you want to prepopulate.

    For example:

    Please test the following demo form I created for you where I have set the custom thank you URL to redirect to same form and populate the name field: https://www.jotform.com/71481297354967 

    I have added the following prepopulation URL in the form:

    https://www.jotform.com/71481297354967?name[first]={name:first}&name[last]={name:last}

    Feel free to clone this form for a closer look. The following guide should help you in form cloning:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • Profile Image

    Answered by sandboxlogistics on June 07, 2017 at 02:44 PM

    Worked perfectly! thanks.