- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 09:29 PM
Hi , I have a requirement to make a single line text to accept only numbers and display custom message:
Quantity should be positive number and greater than 0.
I have used the regex but the it is showing this message :Not a number
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 09:50 PM
You can find Regular expressions in "question_regex" table. You can create your own records and set the message.
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 09:43 PM
Hi,
You can create another regex(with same expression) and add different message as per your requirement. Use newly created Regex in your variable configuration.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 09:47 PM
@Anil Lande
thanks for the reply , by creating regex you are asking to create client script or even can custom regex , please provide from where i can create it ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 09:50 PM
You can find Regular expressions in "question_regex" table. You can create your own records and set the message.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 10:00 PM
There is OOB functionality which validate the regex for the single line text variable.
For your reference i have attached the snapshot.