UI Policy or UI Action

DeIvory Gordon
Tera Guru

Hello, I am trying to get a multi-line field to appear on a catalog item when a user selects yes to a question on another field.  Does it require UI Policy or UI Action?  The question specifically is: Is Cabling Required? Y/N.  If Yes is selected, “Explain Cabling Requirement” field appears.

 

Thank you for your help.

5 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

HI @DeIvory Gordon 

 

UI policy , it is used  to filed hide , mandatory & read only.

*************************************************************************************************************
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]

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

View solution in original post

swathisarang98
Giga Sage
Giga Sage

Hi @DeIvory Gordon ,

 

You can use UI policy and ui policy action,

 

In condition write Is Cabling Required? is yes

 

in Ui policy action make "Explain Cabling Requirement" visible true

 

Note: make reverse if false true 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

 

View solution in original post

AshishKM
Kilo Patron
Kilo Patron

Hi @DeIvory Gordon ,

Yes,  you can configure the Catalog UI Policy with condition applied on "Is Cabling Required", and UI policy action for "Explain Cabling Requirement", visibility true.

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

Weird
Mega Sage

UI policy is used to control field visibility or mandatory values.
You could for example create a UI policy with condition "Cabling Required is Yes" then add UI Policy action where the selected field is "Explain Cabling Requirement" and visible to true. By default the UI Policy has option "reverse if false" on. This option makes it so that any UI policy actions are reversed if the UI Policy condition returns false.
So if you set the field to be visible then it will also be hidden if the policy condition is false.

You can achieve the same using Client Script, but UI Policy is simpler in this case

UI Actions are used to perform actions. For example UI action could update related records change field values. For example you could have a UI action that creates a task record or one that will assign the record to you.

View solution in original post

DeIvory Gordon
Tera Guru

Thank you!!  I tried to select helpful, but it is greyed out.

View solution in original post

5 REPLIES 5

DeIvory Gordon
Tera Guru

Thank you!!  I tried to select helpful, but it is greyed out.