I want to show an error message when i post any commnets and worknotes through post button

mania
Tera Contributor

Hi,

 

I want to show an error message when i post any commnets and worknotes through post button in incident form.

I want to know where and how to got that post button (OOB) in incident form.

Can anyone please help on this, It will be helpul.

mania_0-1724146913405.png

Thanks!

1 REPLY 1

Mark Manders
Tera Patron

Why an error message? You write a comment/work note and with post it saves it to the sys_journal_field table and shows it in the activity log. 
There is only need to save/update the form if you changed other fields as well. What's the error you want to show?

I doubt the code itself is available for us, since it's not a button, but part of the activity formatter. And even if you could reach the code, I wouldn't make changes to it, because of the technical debt and upgrade issues you are creating.

The 'post' button created sys_journal_field entries, so maybe you could do something with that (which would go for all entries, not just for 'post') or you could do it the easy way: put a message above the comments/work notes just telling people that 'post' does not save other fields than the journal fields.