I have 3 checkboxes and want only 1 to be selected at the time

asd22
Tera Contributor

Hello.

 

I got 3 checkboxes in a variable set, and i want it only to be available to have 1 selected at a time

My checkbox names are :

check1

check2

check3

 

Is this a client script that is needed?

1 ACCEPTED SOLUTION

Hi,

You can do this via simple ui policy , no code.

In the condition have <checkbox 1> <is> <true>

Using the ui policy actions , clear value of checkbox 2 and 3.

 

Do same ui policies for checkbox 2 and 3

-Anurag

View solution in original post

11 REPLIES 11

Hi,

You can do this via simple ui policy , no code.

In the condition have <checkbox 1> <is> <true>

Using the ui policy actions , clear value of checkbox 2 and 3.

 

Do same ui policies for checkbox 2 and 3

-Anurag

Experience 🙂 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

this worked great thanks

@Anurag Tripathi 

 

In UI policy

Check box 1 = True

Action

Check2 = Read only --> True

Check3 = Read only --> True

 

Check box 2 = True

Action

Check1 = Read only --> True

Check3 = Read only --> True

 

Check box 3 = True

Action

Check2 = Read only --> True

Check1 = Read only --> True

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Small Correction Atul, instead of Read only , it needs to be Clear Value.

-Anurag