Skip Navigation

[Resolved] Checkbox html shows in post form

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 2 voices.

Last updated by Minesh 9 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2628885
Screenshot 2023-07-31 155837.png

I have some custom fields setup as check boxes. Depending on what the user selects it will store different html

My issue is that when the html html stored seems to cause the checkboxes html code to show in plain text on the form itself.
I had removed the html from the Studio option as an example

#2628935

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please tell me why you would like to store HTML as checkbox value? Where normally you should use either number or text for your checkbox value or combination of number and text as checkbox value.

#2629045

we are using it to display icons based on the checkbox that is ticked

#2629053

Minesh
Supporter

Languages: English (English )

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

Well - I suggest you can configure your checkbox field value either numeric or text and then you can display the icon where you want to display the checkbox value.

Please check the following related ticket that might help you:
- https://toolset.com/forums/topic/displaying-html-conditionally-based-upon-custom-checkbox-field/#post-420675

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.