Changing The Option Text Without Updating Conditions

  • stormingrobots
    Asked 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

    Instead of 

    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. 

     

     

     

  • Ashwin JotForm Support
    Replied on January 25, 2017 at 1:41 AM

    Hello stormingrobots,

    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.

    Thank you!

  • stormingrobots
    Replied on January 25, 2017 at 11:30 AM

    "...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. 

  • David JotForm Support
    Replied on January 25, 2017 at 12:18 PM

    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.

  • stormingrobots
    Replied on January 25, 2017 at 1:46 PM

    absolutely. Thank you!