- 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
07-01-2015 08:41 PM
Can you give it a try with 'Decimal' type variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015 05:07 PM
Hi Deepak,
Please provide a docu link where I can find how to set up a "Decimal" type variable or elaborate more.
I can not find it in
Variable Types - ServiceNow Wiki
Kind regards
Carlos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015 07:39 PM
My mistake Sir, apologies for the same
I misinterpreted it as field rather than variable
Even I am struggling to find more info on this case now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2015 10:49 PM
You could use a UI Macro having HTML code for number input
<input type="number" step="0.01" min="0.01" name="numField" id="numField" max="100"/>