variable item validation for email in catalog item

patrycjabak
Tera Contributor

How can i make simple validaition for variable in maintain item ?

I need to validate email. it should contain "@" sign.
Regards,
Patrycja

5 REPLIES 5

Hi jmiskey,

 

I've been struggling on creating a complex catalog item for a few weeks. One requirements was to do this similar validation, so I'm so glad to have found this client script. My requirement is a little different so I will try to learn from what you have done to see if I can reuse it for my purpose.

I have a text string field but I have to ensure the string is either entered as    characters\characters or characters@characters

The field is asking the user to enter domain admins for AD which can either be   word\word or word@word

So I need to check for both possible formats and if has either or then no error.