Hi all, trying to add a new user to the app. He has an apostrophe in the email that I think is preventing login? At the moment I have no other explanation for this.
I went through the normal process of adding a user, at first I thought the email wasnt correctly pasted into the field but after re-adding it was clear it was. The user sent me the screenshot from below. (I edited out full email/appsheet id) Just for the purpose of revealing the error message and email.
@Steve @Sarah_Keown
According to RFC 3696 apostrophes are valid as long as they come before the @ symbol. However the latter is, Google rejects any emails containing an apostrophes because they are considered as SQL injection devices. You may also read this:
I also have challenges with typos in Email Addresses.
According to me reading up hereβs a list of characters that cannot be used in an email address - like two β@β signs. Also other characters like "!, @ # $ % ^ & * ( ) ? ~ β " cannot be used in an email addressβ¦ basically only alphanumeric and numeric and β@β and β_β and β-β and β.β
And an Email address should also not end with β.β
@Steve and @LeventK How would one put this in a Valid_If expression?
Thereβs no good way to do the complex data validation youβd need for this using expressions. Your best bet is to capture the email address into a column of type Email, which does some validation.
@Steve it is already captured in an Email Field and this only Tests for the β@β and β.β character as far as I know
If I use this formula in the Valid_If,
IFS(CONTAINS([_THIS], β@β), CONTAINS([_THIS], β.β), TRUE, FALSE) ,
and add all the characters like "!, @ # $ % ^ & * ( ) ? ~ β " in there, will it work?
With a Validation Error of,
IFS(NOT(CONTAINS([_THIS], β@β)), βThe Email format must contain a β@β signβ, NOT(CONTAINS([_THIS], β.β)), "The Email format must contain a β.β sign " )
@Steve I tried IFS(CONTAINS([VisitorEmail], β@β), CONTAINS([VisitorEmail], β.β), TRUE, FALSE) and it Validates, but as soon as I add another CONTAINS in, E.g. CONTAINS([VisitorEmail], β!β), then I get a syntax error that IFS is used incorrectly
My formula β> IFS(CONTAINS([VisitorEmail], β@β), CONTAINS([VisitorEmail], β.β), CONTAINS([VisitorEmail], β!β),TRUE, FALSE) β gives a syntax error β> βIFS function is used incorrectly:Inputs to IFS() must be one or more condition-value pairs.β
@Steve I want to validate if the Email Contains Invalid Characters like "!, @ # $ % ^ & * ( ) ? ~ β " and also ensure that it contains at least the β@β and the ". "
My application of the solution using CONTAINS() is confusing you, apologies, but I am not a developer and skilled in coding logic