Is there any way to prepopulate hidden input fields programmatically?

  • Max
    Asked on December 7, 2017 at 8:22 AM

    Hello,

    Is there any way to prepopulate hidden input fields programmatically?


    I want to prepopulate forms with values that should not be possible to change by the user. Using URL params is therefore not an option, since one can easily change those.


    Cheers,

    Max

  • Kiran Support Team Lead
    Replied on December 7, 2017 at 10:45 AM

    Yes. You may prepopulate the hidden field with a value using the parameters in the URL. Please refer to the guide below that can help you with this.

    https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters

    Hope this information helps! 

  • maxhoffmann
    Replied on December 7, 2017 at 11:06 AM

    Hello Kiran,


    Thanks for your answer. As mentioned using URL parameters is not an option since anyone can change these. Is there any other way to prepopulate fields?


    Cheers,

    Max

  • Nik_C
    Replied on December 7, 2017 at 12:44 PM

    You can try using conditional logic, for example in your form https://www.jotform.com/build/73403154860351 you can create a condition that will prefill field if name field is filled:

    1512668371Screen Shot 2017 12 07 at 6 Screenshot 10

    Now, I'm not sure what is the workflow you're trying to achieve, so feel free to share and we will provide the steps with conditional logic (if it is possible).

    Thank you!