- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2018 09:29 AM
Hello Community,
I am fairly new to servicenow, but i have a variable for my catalog item, that variable name is "ent_cost". I need to use some validation to make sure this variable isnt populated with crazy information, it just needs to contain a dollar sign, decimal and 2 numbers after it. ($0.00). For a client script which table do i look at the accomplish this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2018 10:02 AM
There is a pretty comprehensive client-script solution here that you could use.
Please mark this response correct if I've answered your question. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2018 10:22 AM
Great. Let me know how it goes!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2018 10:27 AM
Mark, the onChange script still lets me submit the cat item with text in that field do you think changing it to a onSubmit that it would work?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2018 10:36 AM
Yes. As explained at the top of the article, it's designed to be used in an 'onSubmit' script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2018 12:17 PM
It worked, i just need to work on displaying an error message. Thanks again Mark!