Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add Multiple Radio Button under each other

Naveen87
Tera Guru

Hey Guys,

I have a requirement , Where i have to field == Desk phone.

When Desk phone is selected , 2 radio buttons should be appear. A and B.

When A is selected , it will have C and D under it.

find_real_file.png

How to achieve this??

 

 

Please suggest.

Thank you

1 ACCEPTED SOLUTION

I've done as below:

find_real_file.png

find_real_file.png

find_real_file.png

View solution in original post

30 REPLIES 30

Hi Ankur, 

 

Will catalog client script??.

 

 

Something like this.

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}

//Type appropriate comment here, and begin script below
if (newValue == "Desktop") {
g_form.addInfoMessage("If New Hire, state that accessories are included (Two Monitors, Cables, Keyboard and Mouse)");

}
}

Hi Naveen,

as mentioned earlier you can use showFieldMsg to show it for variable and not for the choices

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

can radio buttons be created as variable??

Please suggest something.

 

find_real_file.png

Option == Multiple choice

3 are option under it.

 

Is there any other way to achieve it so that field msg can also be displayed.

Naveen87
Tera Guru

I would also like to show the msg (if new hire) when New Hire is selected .

How can i achieve this??

 

find_real_file.png

 

I tried catalog client script

function onLoad() {
//Type appropriate comment here, and begin script below
if(hardware_category == 'Desktop'){
g_form.addInfoMessage('If New Hire, state that accessories are included (Two Monitors, Cables, Keyboard and Mouse)') ;
}
}

 

But not working.

Please suggest.