How to ungroup Checkboxes

Meloper
Kilo Sage

find_real_file.png

How is it possible that each checkbox is treated as a separate / separate checkbox?

Each checkbox must be clicked. It is not enough that just one is clicked.

I cannot work with a policy because further checkboxes appear depending on the entry.

Each checkbox has the option "selection required" == true

 

---------------------------------------------------------------------------------

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/product/service-catalog-management...

 

To make a check box mandatory, select the Selection Required option when you create the variable. For example, use this option to require users to select the I agree check box for an agreement form. If users try to submit the agreement form without selecting the check box, an alert message is displayed to tell users that they must select the check box.

A group of check box variables is created when you create consecutive check box variables. These check box variables are sorted by their order within the group. If you want to define a custom label for the group of check boxes, create a label variable at the start of the consecutive check box variables. The label is then considered a part of this group and acts a label of the group. If there is no custom label, check boxes are grouped under an Options label by the application.

In a group of check box variables:
  • If any check box variable in the group is mandatory, the entire group becomes mandatory irrespective of the visibility of the mandatory check box variable. An asterisk (*) is then displayed next to the group label and you must select at least one of these check boxes.
  • Hiding the label hides the entire group.
  • If all other check box variables of a mandatory check box group are hidden and not selected, the following scenarios are applicable:
    • The group remains mandatory as long as there is one check box in the group that is visible and not selected.
    • The last check box of this group cannot be hidden if it is not selected.
1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

Yes, this is know behavior when you have multiple check box variables one after another on form they are grouped as single Variable.

The simple way to ungroup them is to separate them using containers.

like this:

find_real_file.png

I tested this and it worked fine, all checkbox's are mandatory when you check "selection required" == true.

NOTE: make sure you do not add any text in 'Question' field on container start, so that it will not have any container label.

Please mark correct/helpful if this resolves your issue.

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

4 REPLIES 4

Anil Lande
Kilo Patron

Hi,

Yes, this is know behavior when you have multiple check box variables one after another on form they are grouped as single Variable.

The simple way to ungroup them is to separate them using containers.

like this:

find_real_file.png

I tested this and it worked fine, all checkbox's are mandatory when you check "selection required" == true.

NOTE: make sure you do not add any text in 'Question' field on container start, so that it will not have any container label.

Please mark correct/helpful if this resolves your issue.

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Meloper
Kilo Sage

Hi thanks, it works with 2 Checkboxes but i have 5 and i dont want a Split

it is possible to usw always Container Start.

 

Thanks

Then create container for each checkbox variable, it may look redundant but this is how it works.

eg.

container-start (order -10)

checkbox1 (order -20)

container-end (order -30)

container-start (order -40)

checkbox1 (order -50)

container-end (order -60)

container-start (order -70)

checkbox1 (order -80)

container-end (order -90)

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande