App sheet

1) How can I validate Only Alphabets(letters) in name, it should not include number or any special character?
2) How can I validate only email address(I want user can enter only email address)?

0 2 45
2 REPLIES 2

Hi Sanjay,

For 2 : select Email as column type

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Sanjay_Roka 

For 1), use this expression in the valid_if expression:

 

 

AND(
  ISBLANK(EXTRACTNUMBERS([_THIS])),
  NOT(CONTAINS([_THIS],".")),
  NOT(CONTAINS([_THIS],",")),
  NOT(CONTAINS([_THIS],"$")),
  NOT(CONTAINS([_THIS],"*")),
  NOT(CONTAINS([_THIS],"%")),
  NOT(CONTAINS([_THIS],"-")),
  NOT(CONTAINS([_THIS],"_")),
  NOT(CONTAINS([_THIS],"anySpecialCharacterYouWishToAvoid"))
)

 

Aurelien_2-1701847836588.png

Aurelien_1-1701847794655.png

For reference:

Check form input validity (Valid_If) - AppSheet Help

EXTRACTNUMBERS() - AppSheet Help

ISBLANK() - AppSheet Help

CONTAINS() - AppSheet Help

AND() - AppSheet Help

NOT() - AppSheet Help

 

Top Labels in this Space