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.

UI policy

pragati74
Tera Explorer

 

Hi all,

 

I’m working on a scenario where, if I select the option ‘Other Legal Device Marketing’ under the field ‘Which of the following does your query relate to?’, and the jurisdiction is set to ‘Philippines’, then a follow-up question should be displayed:

 

“If ‘Other Legal Device Marketing’, please specify:”

 

To achieve this, I’ve created a UI Policy and also added a UI Action, but it’s not working as expected.

 

Could someone please help me identify what I might be missing or doing wrong?

 

Thanks in advance!

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @pragati74 

UI Policy:

Which of the following does your query relate to? = Other Legal Device Marketing

[Make sure "Reverse false" is set to true]

UI Action & Script:

jurisdiction.setValue('Philippines') [Please check the syntax]

Follow-up question: setMandatory = True

Try this or share a screenshot.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************