Skip Navigation

[Resolved] Checkboxes

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

Problem:

The issue here is that the user wanted to know the purpose of the value on the checkbox.

Solution:

It will show on the frontend, the value that you set that checkbox field to.

So if you set a text as the checkbox value, when you view it on the frontend using the Types shortcode it will display, the value.

I would recommend setting the value to the same as the label.

0% of people find this useful.

This support ticket is created 6 years, 11 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by derrickM 6 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#607254

I'm building checkbox custom fields.

the checkboxes are community features. I want them grouped together.

Can you explain the not selected and selected? You documantatio on checkboxes is lacking. I justs want displayed whateve we check.

Thnanks

#607255

Also in value to store, shouldnt each title have a different value? When I add a title, it puts "1" in the value to store. Thanks

#607327

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Derrick,

Thank you for contacting our support forum.

Lets see how best I can explain this. Now selected and not select are represented by a 1 and 0 respectively. This is the only purpose to provide a value when the checkbox is selected.

You can place any value you like here for the selection because it is essentially what you want the selected value to be.

Please let me know if this helps.

Thanks,
Shane

#607400

I just want whatever is checked to show on the frontend in a list.

Does it matter that the value is 1 on each one? Do they all have to be differnet?

Thanks

#607629

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Derrick,

It will show on the frontend, the value that you set that checkbox field to.

So if you set a text as the checkbox value, when you view it on the frontend using the Types shortcode it will display, the value.

I would recommend setting the value to the same as the label.

Please let me know if this helps.
Thanks,
Shane

#608759

Ok yes i figured this out. Thanks for the verification.