Form logic on multiple fields...

  • plott
    Asked on October 31, 2017 at 7:52 AM

    I have a form that has 3 hidden fields.  Upon selecting certain values in other fields these fields are made visible.  I have logic that checks these 3 fields and if the value in any is 'DNP' then I display yet another field.  However, I need to have the ability to re-hide this field if the value is reset to something other than 'DNP'.  I'm struggling with this logic, as I check for 'equal to' and 'not equal to' in all of the first 3 fields, and they can be conflicting.

    Thank you.

  • Kevin Support Team Lead
    Replied on October 31, 2017 at 9:13 AM

    I have cloned and inspected your form, I noticed you're showing a text element based on the selection made on any of the fields "State Place Finish"; however, you have set the text element as hidden and adding some conditions as well to hide and show the field. 

    Form logic on multiple fields... Image 10

    Form logic on multiple fields... Image 21

    Please note that when you have set up conditions to show a field, the affected field will be automatically hidden, the same happens if you are conditionally hiding a field, it will be automatically displayed so there is not need to handle that. 

    I would recommend you to try doing the following: 

    1. Disable the condition to hide the text element: 

    Form logic on multiple fields... Image 32

    2. Turn off the hidden property on the text element: 

    Form logic on multiple fields... Image 43

    This will be the result: 

    Form logic on multiple fields... Image 54

    Please note that the text element will be shown if any of the state place finish fields has the DNP option selected. 

    I hope this information helps.