"Or" conditional statements on Formidable Views

By: Bree Yardley | Asked: 05/23/2025
ForumsCategory: How-to"Or" conditional statements on Formidable Views
Bree YardleyBree Yardley asked 4 weeks ago

I have a field that should or should not be displayed depending on the answer to an different field.

However, the answer from the different field could be one of three or four options.

So, I was hoping to be able to go:

[if 16 equals="Victoria" equals="Queensland" equals="Northern Territory"]Relevant Information[/if 16]

I read in the documentation that this cannot be done natively.

I COULD do separate statements, however there are around 30 of them... and it would be easier to group them like this, for future ease of use.

Is there a workaround that doesn't involve me doing a separate statement for each variable?

Thanks in advance!

Bree

Question Tags:
Rob LeVineRob LeVine Staff replied 4 weeks ago

Since the forum is still losing answers, I'll try as a comment. You'll want to create a custom shortcode to accept the field value and do the comparison in PHP and return a simple result, e.g., Y or N and use the frm-condition shortcode in your view. <a href="https://formidableforms.com/knowledgebase/compare-two-values-for-display/#kb-compare-to-a-custom-shortcode&quot; rel="nofollow">https://formidableforms.com/knowledgebase/compare-two-values-for-display/#kb-compare-to-a-custom-shortcode</a&gt;

Victor Font Staff replied 4 weeks ago

The forum has been losing answers regularly. If you want to be assured of an answer, please post in my Facebook Group. https://www.facebook.com/groups/formidablemasterminds

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