Validation Script for Catalog Item Variable (ent_cost)

othomas1
Kilo Guru

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?

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

There is a pretty comprehensive client-script solution here that you could use.

https://community.servicenow.com/community?id=community_article&sys_id=5e1e35d3db0e9f0447c8f3231f961...

Please mark this response correct if I've answered your question.  Thanks!

View solution in original post

8 REPLIES 8

Mark Stanger
Giga Sage

There is a pretty comprehensive client-script solution here that you could use.

https://community.servicenow.com/community?id=community_article&sys_id=5e1e35d3db0e9f0447c8f3231f961...

Please mark this response correct if I've answered your question.  Thanks!

Thanks Mark, Im still a newbie which tabel should this client script point to?

 

find_real_file.png

You'll want to use a Catalog client script.  The catalog client script doesn't point to a table, it points to the catalog item that your variable appears under.  Search for 'Catalog client scripts' in your left nav.

Thanks for the tip Mark, i am going to try this out now.