I am trying to: display a conditional field:
<div class="form-group">
<label>Depot Location</label>
[cred_field field='depot-location' post='driving-career' value='' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap']
</div>
[wpv-conditional if="( $(wpcf-depot-location) eq '1' )"] <div class="form-group">
<label>Gloucester Google Map Coordinates</label>
[cred_field field='gloucester-google-coordinates' post='driving-career' value='' urlparam='' class='form-control' output='bootstrap']
</div>[/wpv-conditional]
Link to a page where the issue can be seen: hidden link
I expected to see: Gloucester co-ordinates displayed if I selected Gloucester from the dropdown
Instead, I got: Gloucester co-ordinates are permanently hidden by my attempt to wrap a conditional in post form hidden link
Hi, it looks like you're trying to use a wpv-conditional statement to show or hide CRED form sections based on the selections made in other CRED form fields. This won't work as you intend, because conditional values like $(wpcf-depot-location) will not respond to selections made in the current form. They are intended for use outside of CRED forms, to be used in the context of a post, to respond to the post's existing custom field values.
Instead, you should use CRED conditionals:
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/
These work differently from wpv-conditional statements and respond to current form selections in other custom fields. Please let me know if that's not clear and I can try to provide some additional guidance.