Hi - I'm trying to use a condition group to hide/display some date fields in my form. But it is not working at all. The code is below
<div class="form-group">
<label>Is This a Calendar Event? </label>
[cred_field field="is-this-a-calendar-event" force_type="field" class="form-control" output="bootstrap"]
</div>
[cred_show_group if="( $(is-this-a-calendar-event) eq 'Yes' )" mode="fade-slide"]
<div class="form-group">
<label>Calendar Start Date </label>
[cred_field field='calandar-start-date' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Calendar End Date </label>
[cred_field field='calendar-end-date' force_type='field' class='form-control' output='bootstrap']
</div>
[/cred_show_group]
The two Date fields being hidden/shown seem to work fine outside the conditional group.
The page is ... hidden link
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Gavin,
Thank you for getting in touch.
I tried looking at the page you sent but its being restricted .
Could you send me a screenshot of the custom field in the Types Settings so that I can know what you set as the value for the custom field.
Thanks,
Shane
Hi Shane -
I'm not sure exactly what you are looking for so I've set up temporary access for you:
The Toolset custom post type is "News"
The Toolset custom fields group is "Additional News Info"
The Toolset post form is "News Entry Form" which is in the Elementor page "News Entry Form"
Thank you for your help,
Mark
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Gavin,
I tried the credentials you sent but they dont seem to work.
I've also removed them from the forum as it is a public domain. Please do not provide credentials to your site unless the private fields are enabled.
The fields are now enabled.
Thanks,
Shane
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Gavin,
The conditional group should be working now.
The issue was that you were using "yes" when the actual checked value of the field is "1"
Change the yes to 1 in the conditional resolves the issue.
Thanks,
Shane