Skip Navigation

[Resolved] Displaying checkbox fields in Elementor

This support ticket is created 4 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
- 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 2 replies, has 2 voices.

Last updated by filipeC 4 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#1661499

I would like to display data collected from a checkbox Field on an Elementor page template.

I used the code recommended in another thread:

[types field='shapes' separator=', ' show_name='true'][/types]

However, this displays numbers (Shapes: 1, 2), and I need to display text (Shapes: Round, Flat). I know Toolset saves numbers to the database, which is fine, but how do I show what those numbers mean on the front end?

#1662707
checkboxes-field-example.png

Hi,

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

To show a textual value from the checked/unchecked state of checkboxes, you can select "Show one of these two values" option in the field's settings and enter the desired text value for the "Selected" state.
( please refer to the attached screenshot )

After that, you'll be able to show these values using the shortcode:


[types field='shapes' separator=', '][/types]

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

regards,
Waqar

#1667105

My issue is resolved now. Thank you!