Complex Conditionals

By: Kevin Feenan | Asked: 09/13/2022
ForumsCategory: General questionsComplex Conditionals
Kevin Feenan asked 2 years ago
I need to include a more complex conditional that the default allows - such as   Show Field IF (FIELD1.value eq {"value")) AND (FIELD2.value eq {"value2} OR FIELD3.value eq {"value3"})

Is there a way to do this?    
2 Answers
Bobby Clapp answered 2 years ago
The "show if" any or all of the conditional function should get you what you need. If it can't be done with formidable logic then you will have to move to custom javascript. https://formidableforms.com/knowledgebase/using-conditional-logic/
Russell Guilfoile answered 2 years ago
What I see you describing is conditional group logic. You can achieve this using a few text fields set to admin visibility. The way you'd do it is: Text Field 1 --- Visibility = Admin --- Default Value = "True" --- Conditional Logic = Show if all FIELD1.value eq {"value"}; (FIELD2.value eq {"value2} Text Field 2 --- Visibility = Admin --- Default Value = "True" --- Conditional Logic = Show if all/any FIELD3.value eq {"value3"} Text Field 3 --- Visibility = Admin --- Default Value = "True" --- Conditional Logic = Show if all Text Field 1 value eq {"True"}; Text Field 2 value eq {"True"} The Field you want to show conditioned on the group logic is set to Show if any/all Text Field 3 value eq. {"True"} You will see the Text Fields when you preview the form as admin, but non-admins will not see the fields. Hope this helps.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right