Issue with error message in BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 09:32 AM
A BR checks for certain condition and updates the record only when the conditions are met. If the condition fails, it must display a custom error message (only custom error message).
I have the following 2 lines of codes for this purpose:
gs.addErrorMessage("You do not have permission to update this record.");
current.setAbortAction(true);
However this display the following:
How can I avoid the "Invalid update" message form getting displayed? I want only the custom message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 09:36 AM - edited 11-22-2023 09:37 AM
The invalid update is posted every time the .setAbortAction is called, this is default system behavior and I am pretty sure it cannot be removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 09:57 AM
@vidhya_mouli A workaround to this could be to create an onSubmit Client Script to prevent the submission, you wouldn't get the inavlid update message then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 08:53 AM
@vidhya_mouli please mark one of the answers related to your question as correct. It will help others who have a similar question / issue find the answer in the future 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 09:55 AM
This is the default behavior. But if you want to block a user from updating, you should add ACL for it.
Please mark this response as correct or helpful if it assisted you with your question.