Lock any symbol entry

Dear Users 

I want your help. how can I lock any symbol entry in the form? 

Solved Solved
0 8 225
2 ACCEPTED SOLUTIONS

Write it down instead of copy/paste. 
You should put it in the Valid if field. 
Also replace the dots “…” with a similar CONTAINS line for each of your undesired symbols. 

View solution in original post

Keep adding as many lines as there are "locked" symbols, one line per symbol. 

NOT( OR(
  CONTAINS([_This], "@"),
  CONTAINS([_This], "#"),
  CONTAINS([_This], "$"),
  CONTAINS([_This], "%"),
  CONTAINS([_This], "&"),
  CONTAINS([_This], "/")
)) 

Read these:

Expressions: The Essentials | AppSheet Help Center 

Yes/No Expressions | AppSheet Help Center

View solution in original post

8 REPLIES 8

You don't want the user to input symbols, then unfortunately, and strangely enough, you have to list all the unwanted characters.

NOT( OR(
  CONTAINS([_This], "symbol-1"),
  CONTAINS([_This], "symbol-2"),
  ...
  CONTAINS([_This], "symbol-n")
)) 

Showing error, Which column i input this function.

Capture.PNG.

Write it down instead of copy/paste. 
You should put it in the Valid if field. 
Also replace the dots “…” with a similar CONTAINS line for each of your undesired symbols. 

Thank you. one more last Question,
in this function three symbols are locked. How can I have more symbols? 

NOT( OR(
  CONTAINS([_This], "symbol-1"),
  CONTAINS([_This], "symbol-2"),
  CONTAINS([_This], "symbol-n")
)) 

Keep adding as many lines as there are "locked" symbols, one line per symbol. 

NOT( OR(
  CONTAINS([_This], "@"),
  CONTAINS([_This], "#"),
  CONTAINS([_This], "$"),
  CONTAINS([_This], "%"),
  CONTAINS([_This], "&"),
  CONTAINS([_This], "/")
)) 

Read these:

Expressions: The Essentials | AppSheet Help Center 

Yes/No Expressions | AppSheet Help Center

@Steve Do you know if there are plans to support regular expressions? any hope? Also, if you have a better solution please? Thanks you!

I am unaware of plans to support regular expressions.

Top Labels in this Space