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.
Changing The Option Text Without Updating ConditionsAsked by stormingrobots on January 25, 2017 at 12:39 AM
say I have 2 options for a dropdown field named "field name"
- "option 1" with value 1
- "option 2" with value 2
Can I set up a criterial to:
if dropdown "field name" contains 1st option
then do something
if dropdown "field name" contains 2nd option
then do something
if dropdown "field name" equals to "option 1"
then do something
The text "Option 1" is about how user should see. .So, I may change it to "Option One" instead. However, if I have to match the "field name" equals to "option 1" instead of its' value of "1", the criterial no longer works once I changed to the text to "Option One" instead of "Option 1".
See this form: https://www.jotform.com//?formID=70208611384148
See the list of workshops listed underneath "Workshops Selection".
Everytime I changed even just a byte in the string, the criterias set for a match no longer works.
Now, if I made a slight change, e.g. "RoboDog" to "Robodog", the match no longer works. If I can set up to criteria to match with the value of the options, that will make senses; as it does not affect the "exact" match of the text option.
IF I understand your requirement correctly, you want to setup condition to check the value of dropdown option instead of the text itself (just like in key value pair). Is that correct?
Please note that though it is possible to add "Calculation Values" for each of dropdown values but it can only be used in calculation and cannot be used in the condition.
BTW: If you have a dropdown option with "RoboDog" and then change it to "Robodog", the condition will still trigger without any problem.
"...BTW: If you have a dropdown option with "RoboDog" and then change it to "Robodog", the condition will still trigger without any problem..."
Sorry, I used an overly simplified sample. The change in text is more extensive... such as:
"Hello " vs " Good Morning". They are the same nth-order, but the criteria got removed.
I will submit a feature request to have this added. I can see how it would be useful to have conditions able to reference list position rather than option text.
This would allow for changing option text in dropdown and checkbox fields without having to update conditions. If you have option text that is constantly changing, but the conditions associated with those events do not change, it would be nice to not have to update the conditions.
An example would be daily workshops.
Dropdown with daily workshops
9am option text will vary daily conditionally sends an email to the same address regardless
12pm option text will vary daily conditionally sends an email to the same address regardless
3pm option text will vary daily conditionally sends an email to the same address regardless
Would be nice if it could be set to option 1 instead of option 1 text.
Since I haven't seen too many requests for this feature, I cannot say if or when it would be added. If there are any updates, we will let you know.
absolutely. Thank you!