I want to show an error message when i post any commnets and worknotes through post button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 02:44 AM
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.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 04:26 AM
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.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark