Error message vanishes

kuttti
Kilo Guru

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

sai12
Tera Contributor

Why do you want to redirect ? is it mandatory to redirect ?