wanting to limit only 1 email input into a singel line textfield

asd22
Tera Contributor

Hello

 

I have a a singel line text field in a catalog item where users are supposed to input only one email. But i have issues where the users are inserting for example text like this "testuser@gmail.com, testuser1@gmail.com" This ends up causing loads of issues and i now want it to only be limited so you can insert one email into the field.

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

@asd22  Why dont you use "Email" type variable, this way you dont need script and only one email can be apply on email type variable. 

 

iemail.PNG

 

Hope it will help you.

 

Thanks,

Harsh

View solution in original post

3 REPLIES 3

asd22
Tera Contributor

Hello, i tried this. I change the field name to the field i want to limit. I opened the catalog item and tested it by writing in "test@gmail.com, test1@gmail.com" and this worked, i did not get any errors

asd22
Tera Contributor

I also see now my info was wrong, its not a catalog item its a record producer

Harsh Vardhan
Giga Patron

@asd22  Why dont you use "Email" type variable, this way you dont need script and only one email can be apply on email type variable. 

 

iemail.PNG

 

Hope it will help you.

 

Thanks,

Harsh