- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2015 08:33 PM
G'Day ServiceNow Gurus,
I was asked to create a numeric field. This can be a number up to 100.00, displayed to 2 decimals. Maximum value is 100.00. Minimum value is 0.01
Apparently there is not numeric variable type.
Variable Types - ServiceNow Wiki
The closest if a numeric scale but it is not good enough.
Any ideas how can I achieve the bold statement in a record producer.
Kind regards
Carlos
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2015 11:24 PM
Create a new UI macro with above provided code. Now create a another catalog variable of type macro with label. In Type Specification tab select the macro you created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 10:07 AM
In case of macro it will behave in this way. You could further make use of onBlur functions to detect the value in html element and set the variable mandatory or non mandatory accordingly. That will require complex implementation. Below thread may provide you with another possible solution for this.
https://servicenowgems.com/2016/04/25/making-better-catalog-macros-part-2/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2017 10:15 AM
Thanks Gurpreet.