Skip Navigation

[Resolved] Unchecked Values in Back End Displaying As Empty Space

This thread is resolved. Here is a description of the problem and solution.

Problem:
Unchecked Values in Back End Displaying As Empty Space

Solution:
This issue fixed with Toolset Types 3.0.3

Relevant Documentation:

This support ticket is created 6 years, 6 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 3 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#920399
Unchecked Values Empty Spcae.PNG

I am trying to: I used to be able to use shortcodes to display icons for 'Hotel Ammenities' instead of the name of them. After that broke and I couldn't figure out how to fix it I decided to replace the icon values with the actual word values of said ammenities. After re-updating all the post types (and changing the views separator from ' ' to ', ') it seems like non-checked values on the back end are still showing up as blank spaces on the front end.

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

I expected to see: Only populated values with a comma separating them

Instead, I got: The checked values show up, but there are also empty spaces between some commas when a value is not checked.

#920918

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I checked with my local test install and I'm able to reproduce this issue. It maybe a but or it should be a expected output.

The another way you should output the checkboxes field is:

[types field="field-name" option="0" state="checked"][types field='student-hobbies' option="0"][/types]
[types field="field-name" option="1" state="checked"],[types field='student-hobbies' option="1"][/types]
[types field="field-name" option="2" state="checked"],[types field='student-hobbies' option="2"][/types]
.......

Where:
- Replace "field-name" with your original field name and add as many options as you have.

#921197
2018-07-05_11-39-12.jpg
2018-07-05_11-38-30.jpg

Hi, I'm having the same problem (Views & Content templates), it use to work well

[types field='jours' separator=' · '][/types]

#921651

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Our Devs shared a hot fix in order to fix this issue.

Could you please follow the instructions given with the following link and try to resolve your issue:
=> https://toolset.com/errata/unchecked-checkboxes-rendered-by-using-types-shortcode/