So I have create a form to get some assessment for some subjects and have a checkbox field (Subject), It has around 25 options, but I want to restrict the checkbox selection by user to a max of 5, how can I sum up the selected(True) checkboxes and then run a validation.
I have currently used below 3 forms
Field form definition.
@Alex Medved _ConfiForms_ : If you could help, that would be great !
I believe you are talking about a "checkbox group" field, not "checkbox".
As "checkbox" field has only 2 possible values: true or false
For "checkbox group" field (and for any other multi-value holding field) you can always check it's size via asCount or asLength virtual functions
So, your condition for validation will be (in ConfiForms Field Definition Rules macro, action = Validation Rule)
Dont forget to set the "Message to show when validation rule matches"
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events