Skip Navigation

[Resuelto] limit Checkboxes to one selection?

This support ticket is created hace 7 años, 3 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por nicholasM hace 7 años, 3 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#558389

I need my front end display to be hierarchical like checkboxes will allow however I can only allow users to select one option like radio buttons, is there anyway to limit checkboxes to only allow 1 option to be selected?

#558443

Dear nicholas,

The checkboxes field is a multiple choice field, and there isn't such a built-in feature to "only allow users to select one option" with Views plugin or CRED plugin.

In your case, you might need to try some custom JS codes, for example this thread:
https://stackoverflow.com/questions/19001844/how-to-limit-the-number-of-selected-checkboxes

#559806

That will work for me thanks!