Skip Navigation

[Resolved] Calendar Field not displaying / hiding based on defined conditions in Checkbox

This support ticket is created 6 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.

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

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Waqar 5 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#1122321
03 Conditional Calendar Field Error.png
02 Conditional Calendar Field Error.png
01 Conditional Calendar Field Error.png

I am trying to:
Display a Calendar Field "Completion Date" if and only if a preceding Checkbox "Completion Date - X" has been checked.
- Set a value of: "Date" in the "Value to Store" section of the "Completion Date - X" Checkbox
- Used the Conditional Code: ($(completion-date-x) eq Date) in the "Completion Date" Calendar Field
The Calendar Field "Completion Date" always shows up whether or not "Completion Date - X" has been checked.
Other Checkbox fields with similar conditional display logic work perfectly using similar settings.

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

I expected to see:
No Calendar Field "Completion Date" when Calendar Checkbox "Completion Date - X" remained unchecked.

Instead, I got:
A visible Calendar Field in the Custom Post Creation Screen when the Calendar Checkbox remained unchecked.

#1122671

Hi Andrew,

Thank you for contacting us and I'll be happy to assist.

During testing, I was able to reproduce this issue on my test website as well.

When a repeating field group is showing in the "horizontal" view, the date field is visible on the page load, even if a condition exists to hide it. It does hides/show correctly if the connected checkbox is changed after the page has loaded.

Appreciate you brought this forward and I’ll report this limitation to our concerned team. We’ll get back in touch, as soon as there is an update.

As a quick fix, you can switch to the "vertical" view while editing content and you'll note that the date field will only show when the related condition is true ( screenshot: hidden link ).

I hope this helps and please let us know if you need any further assistance.

regards,
Waqar

#1122673

Thanks so much Waqar,

I'm glad the bug was identified and I look forward to the patch coming out - it's not a big deal in terms of the data entry function but it will be great when that condition is functioning properly in all views.

I really appreciate your prompt and detailed response as well as the commitment to forward the issue to your development team.

Thanks!

#1136531

Hi Andrew,

Just wanted to follow up and update you, that the fix for this issue, is set to be included in the next major release ( Types v3.2 ).

Thank you for your report and patience.

regards,
Waqar

#1155394

Hi Andrew,

Thank you for waiting and just wanted to update that Types 3.2 has been released, which addresses the issue from your report.

regards,
Waqar