limit selections within Checkbox Group

Home Forum Laying out a Form limit selections within Checkbox Group

This topic contains 1 reply, has 0 voices, and was last updated by  adjuvi 12 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #300


    I have a Checkbox Group of 10 fields (i.e. check all that apply), but would like to limit selection to a maximum of 6. I could do this with a state behavior, but don’t seem to be able to “count” the number of boxes checked within the group.



    The way you mention is the best way..

    there are a number of ways you could do this depending on your selection.

    One way perhaps is that on each of the checkbox items ‘changes field data’ or ‘when clicked’ you could have a conditional script.. such that if that item ‘is selected’ it writes a value (1 perhaps) to a hidden field on the form, and then if it is ‘not selected’ (ie the FALSE from the branch) it writes another value (0 perhaps) to that field. then even if the user ‘changes’ their mind, the hidden field for that checkbox item contains 1 or 0

    and then you can ‘count’ these 10 hidden fields up and if they exceed your requirements, present a message to the user to resolve before letting them proceed to the rest of the form (this ‘count’ could be on the ‘show next page’ for instance)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.