Amending 'Close' UI Action on Interactions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:33 AM
Good morning,
We have a requirement to amend the UI Action 'Close' on Interactions. Currently this just straight up closes an Interaction as Closed Complete, and doesn't require any information being input to advise why.
What we want to be able to do is when a user clicks 'Close', it flags the Work Nots field as mandatory and doesn't allow it to be closed.
For ref, this is the current script on the UI Action -:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:36 AM
Hi @StewartFletcher,
Why not simply use a UI Policy?
Condition state = Closed.
UI Policy Action Work Notes Mandatory true
When a user clicks close, the field is set mandatory, before the record is saved.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:41 AM
HI Peter,
That's already a thing we have in place - however, a number of users will simply click the 'Close' button and that completely bypasses the UI Poicy and ignores it. There's a resistance to remove that button completely, so I'm looking at what's possible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:44 AM
Hi Stewart,
Could you share a screenshot of the UI Policy?
It shouldn't be bypassed.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 02:59 AM
So it actually sets the Closure Code field as mandatory, then the user has to select a reason in there. Even though that Closure Code field gets set to mandatory, the UI Action to Close jsut ignores it and closed anyway.
Even if you manually change the State to Closed Complete to make the Closure Code field appear and be mandatory, THEN click the Close button, it still just ignores it.