Skip Navigation

[Resolved] Conditional Group Not Displaying in Post Form

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Shane 5 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1192737

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

#1192760

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

#1193155

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

#1193174

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

#1193204

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