How can we make BR override OOB UI action message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2023 09:21 AM
Hi All,
I have a requirement to make comments mandatory while approving the approvals for Knowledge Management Module.
For this functionality, we have created a BR which triggers when:-
And this is the script I am using in for setting comments mandatory:-
current.state = 'approved';
if (!gs.nil(current.comments))
current.update();
else {
gs.addErrorMessage(gs.getMessage("Comments are required when approving an approval"));
current.state = 'requested';
current.setAbortAction(true);
action.setRedirectURL(current);
}
And this is working, but we can still see the OOB message alongwith the message I have set when we try to approve without comment from the list view.
How can we override this behaviour?
Can someone please guide me on what steps to take to override this default behavior?
Thanks in Advance!
Gaurangi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2024 02:39 AM - edited ‎12-29-2024 02:39 AM
I am looking for same kind of overriding OOTB info messsage. Please help. 🙂