How to hide radio button based on other selection(radio buttons)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2017 09:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2017 10:57 AM
Hi Prasanna
From your snap shot it seems you are working on the service catalog item form.
Probably I'm wrong but I don't think you can obtain what you want easily with the radio button (multiple choice) field.
The choices are provided and there is no possibility to have dependencies between different variables without using DOM manipulation.
DOM manipulation is a practice discouraged and not recommended by ServiceNow.
I would suggest to use other type of fields to obtain something similar.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2017 11:03 AM
Why don't you create two different variables with question Exam. One variable with option Physics and another for chemistry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2017 12:31 PM
Hi,
Below thread would be useful for your requirement:
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2017 02:30 PM
Hi Prasanna,
you can hide it but you need to handle with DOM manipulation and that's not a good approach. instead of doing it i would recommend you just dome some changes in designing and change ur catalog form variable type.
check the below screenshot.
Create these type of variable that i have highlighted in black color.
here i have created a catalog ui policy to hide check box. based on your subject selection the exam option will be available.
Final Result
Let me know if you have any further question.
Thanks,
Harshvardhan
Please Mark the answer as correct/helpful based on impact.