What is the use of Variable Validation Regex and how to use it? w.r.t. Madrid

Maloy Banerjee
Mega Expert

Hi,

 

Can anyone put some light on the topic "Variable Validation Regex" on what's its use and why it's been used?

It is a new topic in Madrid under:

Service Catalog > Catalog Variables > Variable Validation Regex.

find_real_file.png

 

Please suggest.

 

 

Many Thanks,

Maloy

1 ACCEPTED SOLUTION

SatheeshKumar
Kilo Sage

It is new and great feautre added in Madrid, 

 

Instead of creating repeated validation scripts, we can create a variable validation regex and use it in our variables.

 

steps to use:

 

step 1: create variable validation regex

step 2: open your variable dictionary, configure your form layout to add "Validation Regex" in form

step 3 : choose the validation regex which you want apply for the variable and save

step 4:  now test the variable by entering your input, it will throw error message ,if the entered input doesn't match the Regex

this will save a lot of time and effort which will be spent for creating same validation for multiple variables.

 

-Satheesh

View solution in original post

5 REPLIES 5

Hi Satheesh, 

 

i am using this for my validation and i'm using regex to filter certain numbers, however, if i enter any thing other than numbers i get "NaN" error in the string field , i was wondering if you've any insight to stop this from happening? 

 

Regards, 


Varun Sharma