Problem:
I've set up some checkboxes fields and then use the following code to bring them into the front end:
[types field='week-1' option='0' state='checked'] YES [/types]
[types field='week-1' option='0' state='unchecked'] NO [/types]
This was working absolutely fine (see screenshot 01 with the title 'pre commencement'), and seems to be a pretty standard option for Toolset. However, since I've run the updates on all of the Toolset plugins, it's stopped working...
Solution:
it is a known issue:
There is an issue with the Checkbox fields that save “0” when they are not set on a post.
You will need to change all checkboxes field setting to "When unchecked, don't save anything to the database", and resave all posts, and test again.
Relevant Documentation:
https://toolset.com/errata/checkboxes-that-save-0-are-interpreted-as-checked-by-views/
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/Hong_Kong (GMT+08:00)
This topic contains 3 replies, has 2 voices.
Last updated by 6 years, 3 months ago.
Assisted by: Luo Yang.