Survey123 syntax

449
1
09-20-2018 12:13 PM
EricS
by
Occasional Contributor

I want to have users plug in their email.  Then I want to have another question that populates as to the type of email being entered.  ie johnsmith@gmail.com.  If it is gmail account, status should be "valid" and if not gmail account the status should be 'invalid'.  Here is what I have tried so far with many attempts to get it to work... (${email},'gmail.com', 'Valid') or (${email},<>'gmail.com','Not Valid').  I want to parse out and do the search on the gmail.com part of the email and I dont care what is before the @gmail.co which means I dont care about johnsmith on the email example above.  I know some syntax uses  * but not sure what xls uses.

0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi Eric,

This help page on XSLForm Formulas may be of use.

Suggest taking a look at the regular expression examples.

0 Kudos