Decimal point validation in catalog variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 3 hours ago
Hi Team,
In catalog variable field i need validation decimal point only 2 digit allow
eg
10.22
10.01
invalid
10.233
1.001
how to create this validation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
19m ago
Hello @Arun_Manoj
You can create a variable validation regex and use for your variable.
First open this module as showcased below:
Create a new record and provide your desired regex as showcased below:
Regex code:
^\d+(\.\d{1,2})?$
Now use this over your catalog variable created as showcased below:
Below is working of regex over portal with +ve and -ve test case.
If my response has helped you, hit the helpful button, and if your concern is solved, do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
