I'd like to make certain fields show in a form based on the custom taxonomy term selected from a select dropdown. If "Video & Audio Podcasts" is selected, I'd like the associated fields to show up in the form, otherwise they will be hidden. I've tried to implement this on the following page:
The fields are being hidden as expected but I cannot get them to show up using the custom expression above. The slug for the Custom Taxonomy is 'submission-type' and the slug for the term is 'audio-visual' which I've also tried to use in the above custom expression without success.
Can you please let me know how to accomplish this properly?
Actually, maybe you can tell me the syntax for an expression that has multiple values...I can't get this to work yet:
For example the following should show these fields if the taxonomy term does not have an ID of 18, 12, 17 or 16. It works fine for a single ID but not for multiple IDs. How do I do create an expression for multiple terms conditionals?
Hello. Thank you for contacting the Toolset support.
Well - you can use OR logical operator to build multiple conditions.
For example:
[cred_show_group if="($(submission-type) ne '18') OR ($(submission-type) ne '12') OR ($(submission-type) ne '17') OR ($(submission-type) ne '16')" mode='fade-slide']
<div class="form-group">
<label>Course Title & Number</label>
[cred_field field='course-title' post='submissions' value='' urlparam='' class='form-control' output='bootstrap']
</div>
[/cred_show_group]