After abort action in a form Error message is blinking and going.

Aditya253
Kilo Guru

Hi All,

 

Please help on this, I am facing this issue, I wrote abort action code on incident form, abort action is happening but I need to display Error message, for this i have used gs.addErrorMessage(); method but after abort action it is blinking and going.

 

Thanks & Regards,

Aditya 

1 ACCEPTED SOLUTION

Hi @Aditya253 

For such issues, I take a very lame method but it proves effective and time consuming.

Deactivate all the BRs on the table, and just keep this current BR active.

Then activate the BRs one by one.

You should be able to narrow down which BR upon being activated is causing this issue.

View solution in original post

12 REPLIES 12

Hi @Aditya253 

For such issues, I take a very lame method but it proves effective and time consuming.

Deactivate all the BRs on the table, and just keep this current BR active.

Then activate the BRs one by one.

You should be able to narrow down which BR upon being activated is causing this issue.

Hi Satya, 

 

I have followed the same which you have mentioned above, I found out that there is a ui policy code having clear messages I just removed that it started working. Thank you soo much for your help.

 

Thanks and regards,

Aditya.

SatyakiBose
Mega Sage

Hello @Aditya253 

You might want to check this out.

https://www.servicenow.com/community/developer-forum/gs-adderrormessage-is-popping-on-form/m-p/21514...

 

Check if any of the BRs on that table has the following line of code. If so, then you need to remove that. Or, change the order of execution of that BR and your BR.

 

gs.flushMessages();

 

Thank you Satya, I will check

I have checked there is no flush messages on that form