UI policy using Created field

Bhoj Sancheti
Tera Contributor

Hi All,

 

I am trying to create a UI policy based on the condition that the field 'Created' (system created date field) is empty. The UI policy is not working for the new record form unless I bring the field on the form layout. Once on the form layout the policy is working as expected. But from the product documentation of UI policy we do not need the field to be present on the form for the UI policy to function. Any help on this would be appreciated!

9 REPLIES 9

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Bhoj Sancheti 

 

UI Policy, as name said, it only and only work, when a filed on form level , else it will not work. As it is client side so visibility on form is must to work for a UI policy. 

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

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

Hey @Dr Atul G- LNG

 

This is what I got from the product documentation of ServiceNow for UI Policy - 

A UI policy condition evaluates all fields even if they are not visible on the form. This function removes the requirement that a field must be on a form for it to be evaluated.

link - https://docs.servicenow.com/bundle/washingtondc-platform-administration/page/administer/form-adminis...

 

I think the requirement for a field to be present on form is only for client scripts. Please recheck once.

Also, the UI policy is working fine for already created records with the field being present on the form. Only for newly created records the policy is not working.

 

Thanks

HI @Bhoj Sancheti 

 

Here is first line said:

 

AGLearnNGrow_0-1710851704456.pngAGLearnNGrow_1-1710851755592.png

 

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

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

But still this contradicts what is said for a UI policy not requiring the field to be present on the form.