- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 05:34 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 05:39 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 05:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 05:39 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader