gs.addErrormessage is popping on form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:35 AM
Hi All,
In the advance script of BR I have added
gs.addErrorMessage('xyz.');
current.setAbortAction(true);
current.state = previous.state;
The above message is just flashing on the form and disappears. I want to make the message to be visible to the user. how can I do?
Thanks,
Sowmya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:39 AM
It should not disappear. Please open the form in new tab/window and try once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:40 AM
Must be something else running as well. I did a quick test to verify on my personal dev and it worked there. As a before BR.
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:41 AM
Hi Sowmya,
Use getErrorMessages() and capture the gs.addErrorMessage('xyz.');
Then save in a new variable and give the same in addInfoMessage();
Hope this could help you.
-Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2016 05:41 AM
current.state = previous.state;
gs.addErrorMessage('xyz.');
current.setAbortAction(true);
Now try, When ever user cancels only the message box will remove.