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

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

For detailed info about the variable validation regex, check the below article.

Variable validation Regex Madrid - Usage

 

-satheesh

Can we call any function in "Validation message" feild.To show a bigger sentence

Thank you very much!  #2 was what I was missing.