Skip Navigation

[Resolved] Conditional Fields Based on Taxonomy

This support ticket is created 5 years, 3 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 mikeF-8 5 years, 3 months ago.

Author
Posts
#1333921

I am trying to display fields conditionally based on a taxonomy field selection. I am using the following, but having no luck.

<div class="form-group ">
<label>Do you own or represent the owner of this business?</label>
[cred_field field='ownership-status' force_type='taxonomy' output='bootstrap' display='select' single_select='true']
</div>
[cred_show_group if="( [wpv-post-taxonomy type='ownership-status' format='slug']) eq 'Yes' )" mode="fade-slide"]
<div class="form-group ">
<label>Business Name</label>
[cred_field field='listing-contact-first-name' force_type='field' class='form-control' output='bootstrap']
</div>
[/cred_show_group]

#1334019

I have found the solution.

The proper formatting for the cred show group:

[cred_show_group if="($(ownership-status) eq '10')" mode='fade-slide']