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

    Can I pass a value into a hidden form field?

    Asked by subwayo2wifi on September 16, 2013 at 12:45 PM

    Hi There,

    here's what we'd like to do:

    user comes to page A, which basically shows a world map, with highlightable, clickable regions.

    The user clicks on a region e.g. Europe. 

    The page refreshes, showing a jotform containing a list of European countries and the rest of the form (a normal iframe emdedded jotform).

    If, instead, they'd clicked on the map of North America, then the page would refresh, but showing a list of countries in North America (US or Canada).

    Basically, is there a way to pass values into a hidden field (called 'region' for arguments' sake) that we can then use that value to enable conditional stuff to happen (such as showing or hiding a field)?

    If not, can you think of a way we could do this?

    Had a look through the advanced help stuff, but couldn't find anything.

    Cheers,

     

    Frank

    JotForm hidden clickable find
  • Profile Image
    JotForm Support

    Answered by ashwin_d on September 16, 2013 at 02:16 PM

    Hello Frank,

    Yes that's very much possible. You may like to check the url parameter options which will help you pass values to a hidden form field. 

    What can be done is, you can add a hidden form field in your form and then pass value into this hidden field through url parameters. You can create conditions on the hidden form field to show/hide any other field. Here is a guide which should help you understand url parameters:  http://www.jotform.com/help/71-Prepopulating-fields-to-your-JotForm-via-URL-parameters

    On requirement similar to yours, I have created a demo form for you:  http://form.jotform.co/form/32524096571859?email3=ash@gmail.com&name=Ashwin&hidden=Ash

    This form has 4 fields name, email, hidden and a text field to show the value of hidden field on a condition. If you see the above form url, apart from populating the email and name I am also sending value for hidden field. I have also set a condition where if the value of hidden field equals "Ash", it will display one more textbox.

    Hope this helps.

    Do let me know if you have additional questions.

    Thank you!

  • Profile Image

    Answered by fmCorp on February 05, 2014 at 04:12 PM

    I have a similar scenario, but can't quite get a conditionally hidden field to populate.

    http://form.jotform.ca/form/40265506082247?chapter=3 

    This works fine *if* the form field isn't hidden. However, using conditions to hide the field doesn't work:
    - If *chapter* field *Is Filled* 
    - Then *Hide* *chapter* Field

    If you go the form when the condition is applied, no value is ever written to the field, and thus never submitted with the form.

    Any idea? 

  • Profile Image
    JotForm Support

    Answered by jonathan on February 05, 2014 at 04:18 PM

    @fmCorp

    Please create a new separate thread regarding your issue.

    Use this http://www.jotform.com/contact/

    You can just copy and paste your message from here to the new thread you will create. Provide the appropriate subject/title in the question.

    We will attend to you at once.

    Thanks.