URL Validation

rambabu1
Giga Expert

Hi,

In Catalog Item i have 1 variable. 

1. path - single line text

I want to validate only user able to enter data with http.

1 REPLY 1

Jaspal Singh
Mega Patron
Mega Patron

Hi Ram,

 

Since, its for variable you can simply you OOB variable validation regex that comes for URL.

Look for Service Catalog >> Catalog Variables >> Variable Valdiation Regex from application navigator & Then check if an entry exists for URL. If not create one as below.

find_real_file.png

Regex: (((ftp|http|https):\/\/)|(www\.))([-\w\.\/#$\?=+@&%_:;]+)

Now, go the the variable & then in the Type specification tab select the Regex as created above.

find_real_file.png