Radio button client script

Priyanka Chaud1
Tera Contributor

Hi folks,

I have 3 radio buttons in my catalog item but I want 1 radio button to be visible only when a particular field is selected i checked addoption,setvalue but its not working with radio button in client script does anyone knows what should work please let me know @Ankur Bawiskar @Anil Lande @suvro 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Priyanka Chaud1 

it won't work with radio button variable.

Please use select box with choices and then remove the options

How to hide an option from a multiple choice variable in catalog item 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

Hi Priyanka,

I doubt that would be a possible behavior for radio button. If you still need only way is DOM manipulation which is not recommended. Suggestion, will be change it to a variable type more of selectbox or so that helps you use .addOption and .removeOption

Ankur Bawiskar
Tera Patron
Tera Patron

@Priyanka Chaud1 

it won't work with radio button variable.

Please use select box with choices and then remove the options

How to hide an option from a multiple choice variable in catalog item 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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