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
09-09-2025 02:44 AM
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