Developer forum

Forum » Rapido » required checkbox forms for editors

required checkbox forms for editors

Gerard Kocks
Gerard Kocks
Reply

Hi,

On our page www.istwente.org we have a form with a checkbox list.
We would like to make it required, but if we do the user needs to select all.
We would like, off course, that is also possible to select one field instead of all.
But at this moment user receives notification.

Best regards
Gerard

Checkbox_required.png

Replies

 
Nicolai Pedersen
Reply

Hi Gerard

Currently that is not possible. The required flag is based on the html5 specification that requires all the checkboxes in the group to be checked - and not only one in the group, which would much more logical. See more here: https://stackoverflow.com/questions/5884582/required-attribute-on-multiple-checkboxes-with-the-same-name

So to fix this, a custom validation is required.

The forms for editors update due in 9.6 is planned to have a built-in validation feature - and that should be able to handle this scenario.

BR Nicolai

 
Gerard Kocks
Gerard Kocks
Reply

Hi Nicolai,

Thanks for your reply, for now I think we can fix it with workarounds.
Good to hear that it will be in 9.6.

BR. Gerard

 
Lars Larsen
Lars Larsen
Reply

Hi Nicolai

Has this built-in validation feature been implemented in  v9.6 or later?

 

You must be logged in to post in the forum