Before update br not reloading page on setabortaction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 06:04 AM
I am using a Before update business rule, where I want to abort an update action and reload the page.
But I am not able to reload the page, I am getting invalid update error on the form but the page is not reloading.
The data is reset after a manual browser reload.
code for before update business rule:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.setAbortAction(true);
action.setRedirectURL(current);
})(current, previous);
Original record:
After modifying on ui, not pressing save/update
After clicking save:
Reloading the page:
Thanks in advance.
- Labels:
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 06:07 AM
Hi,
You can try swapping the redirect before the abort and see if that works, otherwise, you'd want to address this within the client form.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!