- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 11:59 AM
All,
I need to make the Additional Comments field mandatory on the Incident form when
1) When the state is changed to On hold or
2) When the On hold reason changes
I have created a UI Policy as shown here.
However, whenever I submit additional comments and Save it, the * does not leave the field when the State is On hold and reason is anything.
Any help is appreciated.
Thanks,
Mallika
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 01:31 PM
No need for the Client script, just make sure the the "On load" field is FALSE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 12:15 PM - edited 06-26-2023 12:15 PM
...because you're doing it as UI Policy, it doesn't "trigger" -- it is state-based, and *whenever* the state is on hold, it will apply. This is why it is "not going away" when it is "satisfied" (it can't continually be satisfied because it's a journal field type - constantly open to input, never "full").
If you want to enforce a comment when it is put on hold, but not while it stays on hold, you may want to use a Client Script instead, so that it can trigger onChange...then the script should (if the "additional comments" is empty), display a message and then reset the status (to not On Hold).
End user would select "on hold" and then select a reason, without any comments, if they "save/submit/insert/update", the client script will say "nope - gotta have a comment" and set the state to previous (in progress or whichever).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 12:41 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 12:15 PM
Make sure the UI Policy looks like this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 01:31 PM
No need for the Client script, just make sure the the "On load" field is FALSE.