Is there any way to prepopulate hidden input fields programmatically?

  • Profile Image
    Max 
    Asked on December 07, 2017 at 08: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

  • Profile Image
    Kiran
    Answered on December 07, 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! 

  • Profile Image
    maxhoffmann
    Answered on December 07, 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

  • Profile Image
    Nik_C
    Answered on December 07, 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.37

    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!