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 can I prepopulate the name field to a set value?

    Asked by rlzolinas on April 18, 2016 at 02:20 PM

    Based on the program name being equal to "writing camp",  I need the name field to populate to John Doe, however I don't know how to go about doing this... I also need the dates to populate as follows: start date = june 20, 2016 and end date = june 24, 2016.

    Thanks!

    Page URL:
    https://form.jotform.com/61085484855970

    name how a how can i
  • Profile Image
    JotForm Support

    Answered by BJoanna on April 18, 2016 at 05:35 PM

    If I understood you correctly you want to pass value "John Doe" to name field if some other field contain value "writing camp". This is possible to achieve. However you will need to crate one additional Name field inside of your form and prepopulate that field. Inside of this guide you can find how to prepopulate fields on your form via URL Parameters:

    http://www.jotform.com/help/71-Prepopulating-fields-to-your-JotForm-via-URL-parameters 

    Then with conditional login you can pass value from prepopulated field to other Name field if some other field contain value "writing camp".

    I have made demo form and set my condition like this. 

    Here is my prepopulated demo form: 

    https://form.jotform.com/61087147280960?nameTest[first]=John&nameTest[last]=Doe 

    Feel free to test it and clone it

    You can also hide prepopulated field, so it will not be visible to your users. 

    With same logic you can prepopulate date fields. 

    Hope this will help. Let us know if you need further assistance. 

  • Profile Image

    Answered by rlzolinas on April 19, 2016 at 09:04 AM

    I ended up just making the name field a regular text field and calculating the condition. Thanks.

  • Profile Image
    JotForm Support

    Answered by beril on April 19, 2016 at 09:11 AM

    On behalf of my colleague, you're kindly welcome and thank you for sharing your solution with us. We are glad to hear that, the issue has been resolved for you. If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.