Error message vanishes
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2022 03:34 PM
Hello Community,
When the below code - the error message vanishes and form reloads but I want error message to stay so that user/developer knows why it is aborted. Should I just place error message at end.
gs.addErrorMessage("Unable to approve it. please contact admin");
current.setAbortAction(true);
gs.setRedirect(current);
Thanks!
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-06-2022 10:08 PM
Why do you want to redirect ? is it mandatory to redirect ?