Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to sum the true check box on the checkbox field ? Edited

Saurabh C I'm New Here Nov 10, 2020


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

Registration form

Form definition

Field form definition.


@Alex Medved _ConfiForms_ : If you could help, that would be great !


1 answer

1 accepted

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"

Saurabh C I'm New Here Nov 11, 2020

Thanks a Ton  Alex Medved _ConfiForms_ , was really not able to find asCount variable field anywhere....


You are awesome !

This is not a field really, but a function (among other virtual functions we have in ConfiForms ) that you can use on a field

Like Saurabh C likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

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...

82 views 0 3
Read article

Community Events

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

Events near you