Need to add an Alert to a Reference Field when it shows the error "Invalid Reference"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2014 01:47 PM
Hi there,
I have a reference field that will be looking to make sure a number matches what is in the database. The thing I need to add, is that when the field can't match the input to the database/can't find the record, OOB service-now puts the red dotted line and a hover over message saying "Invalid Reference". When this happens, I need to figure out a way to put a g_form alert message to the field to say that the "Number is Invalid". I am guessing this has to be a client script.
I have looked all over the wiki, and what I did find (an observe.click function ordeal) did not work. Anyone else have a better idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2014 12:30 PM
Hey Brad! I actually took a Sys admin course with you in NYC last year.
Thanks, I will give this a go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2016 12:31 AM
How to apply the same for a reference field in an order guide?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2016 12:34 AM
Just make the field mandatory if not already and you wouldn't actually need a alert.