How to apply UI policy to a catalog variable attribute ?

Honor_ Lagaza
Tera Contributor

Hello community, 

 

I am building a form, and I need to make a field mandatory when another filed's attribute (active, class or any attribute of the field) have a certain value. 

How should I proceed without scripting please ? 

 

P.S. : It is not a condition on a form field, but on the form field attribute ! 

9 REPLIES 9

Hi @Honor_ Lagaza 

I checked on my end and agree with you—the related field is not available in the catalog UI policy as one of the variables. You need to write a proper logic for that, mate, or use the exact values.

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

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

Honor_ Lagaza
Tera Contributor

Hi Dr, 

 

Thanks for the reply and sorry for the delay. 

 

About your response, I am building a form using reference fields and I need some catalog UI policies on  some of their related fields. The related fields are not reachable to put a condition on them. Is there a way to do it but avoiding scripting please ? 

 

Thanks for your time. 

 

Best regards, 

Hono. 

Ankur Bawiskar
Tera Patron
Tera Patron

@Honor_ Lagaza 

so basically you want to check some field value which is within a reference field?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar , thanks for your reply. 

I want apply a UI policy on a dot-walked field of a reference field. Is it more clear for you please ? 

Thank you

@Honor_ Lagaza 

not possible to use UI policy on dot walked I believe.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader