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.
Can I pass a value into a hidden form field?Asked by subwayo2wifi on September 16, 2013 at 12:45 PM
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.
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://firstname.lastname@example.org&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.
I have a similar scenario, but can't quite get a conditionally hidden field to populate.
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.
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.