Skip Navigation

[Resolved] Conditional by Category in CRED form Not Working

This support ticket is created 5 years, 1 month 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by benjaminJ-3 5 years, 1 month ago.

Author
Posts
#1370649

I am trying to: Set-up a Conditional Output by category vendor-types https://toolset.com/forums/topic/conditional-display-based-on-taxonomy-selection-in-a-cred-form/

Link to a page where the issue can be seen: hidden link

I expected to see: Hello Bob

Instead, I got: Nothing

<div class="row">
<div class="form-group col-md-6">
<label>Vendor Type</label>
[cred_field field='vendor-types' force_type='taxonomy' output='bootstrap' display='checkbox']
[cred_field field="vendor-types_add_new" taxonomy="vendor-types" type="add_new"]
</div>
<div class="form-group col-md-6">
<label>Vendor Events</label>
[cred_field field='vendor-event' force_type='taxonomy' output='bootstrap' display='checkbox']
[cred_field field="vendor-event_add_new" taxonomy="vendor-event" type="add_new"]
</div>
</div>
<div class="row">
<div class="col-md-12">
[cred_show_group if="( $(vendor-types) eq 'entertainer' )" mode="fade-slide"]Hello Bob[/cred_show_group]
</div>
</div>

#1370693

The documentation on this page is wrong: https://toolset.com/forums/topic/conditional-display-based-on-taxonomy-selection-in-a-cred-form/

It tells you to use the category slug but you need to use the category data-value which in my case had a capital E instead of a lowercase e. Can you please update that documentation. Thanks!