To make additional comments mandatory when state set to canceled (should run in both views)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 07:41 AM
Dear Team,
In the Incident record, when the field State is set to 'Canceled', then want to make the field 'Additional Comments (comments)' mandatory and restrict the form submission/updation/save and throw an error message at top.
This should work in both views (Portal view and Standard form view)
I tried through client scripts, UI Policies but no luck.
Kindly help with the steps and script to get this resolved.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 08:06 AM
Hi @rishabh31, You can try the below OnChange client script to make the additional comments mandatory when the Incident state is set to Cancelled. You need to make sure the Field Name is set to 'State' on the Client Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 08:04 AM
UI Policy work with order 300
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 03:42 AM
I am facing the same issue.