Skip Navigation

[Resolved] Dual Condition

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by gavinP 3 years, 7 months ago.

Author
Posts
#1806015

Hi guys, I hope this finds you well!

Basically what I'm trying to achieve here is a dual check on a multi select field.

I have a list of 15 items with the last of them being "No"

Basically what I need to tell the output to do is:

if this multi select has no input values at all don't display their container on the single template page
and if the input value is equal to the 15th item "no", again don't display their container on the page

Is it possible to build this in to the one single conditional check via shortcode? Or what would be the beatest way of cehcking both conditions?

Thanks so much for your help...

Gav

Just to add at the moment it looks something like this with just the check on if the fields are empty, I also need to hide this block if option 15 has been selected !

[wpv-conditional if="( $(wpcf-if-yes-please-specify) eq '' )" evaluate="false"]

<div class="row">
<div class="red-divider"></div>
option 1 through to 15
</div>

[/wpv-conditional]

#1806061

My issue is resolved now. Thank you!

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.