I have created a form that contains a checkbox list with 15+ options. Is there a way to limit the user to select only 5, this is obviously not out of the box functionality and I could probably do this with jQuery or something, but don't really know my way around Forms yet to know where I would add some custom code?
Umbraco Forms - Checkbox List Limit
I have created a form that contains a checkbox list with 15+ options. Is there a way to limit the user to select only 5, this is obviously not out of the box functionality and I could probably do this with jQuery or something, but don't really know my way around Forms yet to know where I would add some custom code?
Cheers
Chris
I'm interested in this as well.
Hi Chris and Matthew.
As mentioned, you could probobly fix this quite easily with jQuery. You can find the view for adding custom code here:
If you have the time and energy, i recommend you to build your own Custom Field type instead of mixing with the existing one.
Adding a field type to Umbraco Forms:
https://our.umbraco.org/Documentation/Products/UmbracoForms/Developer/Extending/Adding-a-Fieldtype
Also here is a great tutorial:
http://denisemdb.com/learn/umbraco-forms-custom-fieldtype/
Also see this related post: https://our.umbraco.org/forum/umbraco-pro/contour/64018-Adding-in-Custom-Field-Type
Good luck!
is working on a reply...