Make choice variable Visible &Mandatory based on app value and other choices value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hello Everyone,
I have one requirement,
The catalog item having the App value -reference type(reference table gm-app table)
Choice1 Variable -reference type(reference table -gm_add_il_table)
Choice2 Variable -reference type(reference table -gm_add_il_table)
Choice3 Variable -reference type(reference table -gm_add_il_table)
gm_app table and gm_add_il table are interlinked with name field
suppose if select app value then script check app value having the choice1 value ,if Yes then make it Mandatory
based on chice1 value it check the choice2 having value ,if yes make it visible and mandatory
based on chice2 value it check the choice23having value ,if yes make it visible and mandatory
if the choice are not having the values then make all hide like below
if select app value , if it's having only choice1 then it's visible and it's mandatory also
but some applications are not unique like below
so if select app value it check the choice 1 value and it show and it check Choice 2 to the same app and it's visible ,it check Choice3 to the same app and make visible and mandatory based value. please update below script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
so what's not working?
what debugging did you do?
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
3 hours ago
here the problem is Choice3 depending on choice2 ,choice2 depending on the choice1
the above script not working as expected -like below
because of the above script even after having the value also not making mandatory