Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Related to Service catalog on visibility and mandatory fields

varshajain
Tera Expert

In my service catalog, i have two select box field, for eg, 1 . is categery which has two options anad 2. is sub category which has 5 options.
now based on these conditions , the form visiblity and mandatory should work according.
Like it becomes 10 conditions on this, most of the variables are common and its visibilty and mandatory works on different cases.
I worked with UI policy and Client scripts and it is not working as expected.
How can I achieve this, and variables whose visibilities I need to do has almost 12 -1 5 variables.

5 REPLIES 5

Eshwar Reddy
Kilo Sage

Hi @varshajain 

Could you share the snippet of the code 

Thank you 
Eshu

Sarthak Kashyap
Mega Sage

Hi @varshajain ,

 

I think you should go with UI Policy, and in UI Policy you can check the checkbox "reverse if false", if someone select other option then your UI Policy's condition false. Also try to give proper condition for category and sub category.

 

SarthakKashyap_0-1763457684075.png

 

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

PrashantLearnIT
Giga Sage

Hi @varshajain 

 

Can you please share what all things you have created to achieve these?

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************

Anand2799
Tera Guru

Hi @varshajain ,

 

Could you provide details of requirement more clearly?

 

Thanks

Anand