Is it possible to keep character limit for variable excluding white space?

Community Alums
Not applicable

Hello,

 

Is it possible to keep character limit for variable to 18 and if there is any white space then it should not be counted. User should be able to enter 18 characters excluding white spaces.

 

Regards,

Jainil Shah

1 REPLY 1

ShubhamGarg
Kilo Sage

Hello @Community Alums ,

Use regular expressions to fulfill this criteria.

Go to your variable > "Type specifications" section > Select appropriate Validation Regex from drop-down list. > Save it.

 

In case, RegEx is not present in drop-down. Create new Validation Regex following this path: Service catalog > Variable Validation Regex > Create New.

If my response helps you in any way, kindly mark this as Accepted Solution/Helpful and help in closing this thread.

Regards,

Shubham