How to override setAbortAction() Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2013 10:36 PM
Can anyone tell me How to override setAbortAction() Message?
Thanks
Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2013 06:20 PM
There's some tips here: current.setAbortAction(true) causes the error message 'Invalid update'
"Also forgot to mention that it can be updated via System UI -> Messages (key 'Invalid update'), to be at least a little more user friendly."
And IMHO ("Servicenow Guru" agrees) that you should probably add another info message that explains _why_ the action was aborted.
http://www.servicenowguru.com/scripting/stopping-record-submission-servicenow/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2013 09:47 PM
I have set a field as unique.So when i try to create a duplicate record system shows an error message.Can we override that message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2013 10:09 PM
That message doesn't seem to come from a (System UI) Message. My first reaction would be, no, you can't.
But you could build something to detect the unique key violation _before_ ServiceNow picks it up and throws that error.