Make mandatory before complete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 11:09 AM
Hi Everyone,
So, I have three fields that need to be mandatory before the user is able to Complete a case. I have a UI Policy shown below, but when I click the Complete button, it brings up the modal to have the user enter the comments and allows the user to complete the case without completing the fields shown below. I have the UI Action code and related AJAX script for the Complete Update button that is showing the modal and allowing the user to close this out even though the UI Policy and the fields on the form show mandatory. I originally had them set to mandatory on the main table, but this then made the fields mandatory on submission and we only want them mandatory before the user completes the case.
Here is the script for the Complete UI Action:
====================================
Here is the AJAX part of the script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 11:17 AM
Try changing/converting the UI Policy to a Data Policy - you may need to inactivate the UI Policy and create a new Data Policy...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 06:01 AM
Hi Brad,
Thanks, I tried that and still got the same results.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 11:18 AM
Inside your OnClick(), just before you call the modal you could have 3 if conditions to check for the values on those 3 fields. If one of them is empty, then throw an alert and return false;