Page 1 of 1

Email validation/masking in VL Web

Posted: Sat Nov 18, 2017 3:00 am
by dhnaigles
does anyone have a sample of telling VLWeb that a text box is an email address and validating that it is "correct"? WAMs have a way of doing this, but I cannot figure out a VL Web equivalent? Maybe a regular express? Has anyone done this and could you provide a sample? Thanks in advance
david

Re: Email validation/masking in VL Web

Posted: Mon Nov 20, 2017 9:03 am
by Stewart Marshall
v14.2 will have an isEmail intrinsic function.

Until then, the simplest solution is to create a widget with a simple JavaScript test using a regular expression.

Regards

Re: Email validation/masking in VL Web

Posted: Mon Nov 20, 2017 9:04 pm
by HMJust
Question: What will the criteria for email validation be with the "isEmail" function?

I am asking because I spent some time with the specification for email addresses and as I recall, taken literally the RFC2822 allows for many things that we are not interested in normally - but which are valid.

Re: Email validation/masking in VL Web

Posted: Tue Nov 21, 2017 8:50 am
by Stewart Marshall
As I understand it, isEmail validates email addresses using criteria that approximate RFC2822.

It will cover the vast majority of email addresses.

Regards