UI policy using Created field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 04:45 AM - edited 03-19-2024 04:50 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 04:56 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 05:29 AM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 05:36 AM
Here is first line said:
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 07:48 AM
But still this contradicts what is said for a UI policy not requiring the field to be present on the form.