1.UI Plocy is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 09:51 PM
Hi Team ,
under closure information , I have created 2 custom fields . please check screenshot .
when we click on ' COMPLETE' or States changes to ' closed ' these two custom become mandatory . and without entering any data , form should get save .
I have created UI Policy for this ,
in the when to apply > CHANGES , option is not there .
Result :-
But it is not working still form got saved
can anyone please help me here , what mistake i have did , why it is not working . please help me with steps and screenshot for better understanding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 10:16 PM - edited 07-10-2024 10:17 PM
Hi @nameisnani ,
Create a data policy, it should work.
** Update your field name accordingly.
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 10:48 PM
Hi @nameisnani
You can also try one more option that is bringing those two fields in to the closure dialog model, So when you click on complete the model pops up and also shows those two fields as mandatory to fill. It will be easier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 11:50 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 12:19 AM
Hi,
The issue here is that UI policys react to fields that are on the form.
When you use a UI action that changes the fields (which this complete button does) the UI policy is evaluated after the change is already in place. So the fields become mandatory after the fields have changed.
So the UI policy will work, but only if you manually change the fields in the form, then it will set the fields to mandatory.
In this case you can combine the UI policy with a business rule, that checks if the fields are mandatory before setting the record to complete.
No scripting required, just use the condition builder to have the business rule run before the record is changed to complete, and your two custom fields are empty, and then it should prevent the submit.