Number only variable in service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 09:12 PM
Hi,
I have a requirement to enter a number ONLY in the value section of a variable. Which variable type of the service catalog will allow it?
Regards
Suman P.
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 09:16 PM
Hi,
No OOB type available but you can use sing line text with Regex validator to only allow numbers.
There is OOB Regex available so you just need to configure variable.
You just need to add Number in Validation Regex field on the variable under Type Specification section.
Regards,
Muhammad
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 09:20 PM
Thank you so much For regex I will select a number but the variable type would be?
Regards
Suman P.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 09:20 PM
Variable type - Single line text
Muhammad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2022 09:22 PM
variable type - Single line text.
List of available regex can be find by navigating to question_regex.list table.
Please mark the responses as helpful/correct, if applicable.
Muhammad