How can I prepopulate the name field to a set value?

  • duqadmin
    Asked on April 18, 2016 at 2: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!

  • BJoanna
    Replied on April 18, 2016 at 5: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. 

    How can I prepopulate the name field to a set value? Image 1 Screenshot 20

    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. 

  • duqadmin
    Replied on April 19, 2016 at 9:04 AM

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

  • beril JotForm UI Developer
    Replied on April 19, 2016 at 9: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.