- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2022 11:19 PM
Hi,
For Allocation percentage, i have to restrict the decimal value .Integer type is not there.suggest me a code or script for restricting decimal value.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2022 11:35 PM
ok, if you open the variable you will see below option.
In validation regex if you dont see this "Percentage (integer from 0 to 100)" then create new with following script
(^100$)|(^([1-9]([0-9])?|0)$)
Validation message is the message you want to show.
And the question type should be single line text.
Thanks
Harshad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2022 11:22 PM
this field is on which form? a catalog item or table?
We can use regex on field dictionary.
Thanks
Harshad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2022 11:25 PM
Hi Harshad Wagh,
I am using a catalog item.
Thanks
sengeni.D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2022 11:35 PM
ok, if you open the variable you will see below option.
In validation regex if you dont see this "Percentage (integer from 0 to 100)" then create new with following script
(^100$)|(^([1-9]([0-9])?|0)$)
Validation message is the message you want to show.
And the question type should be single line text.
Thanks
Harshad