function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rakul SrivastavRakul Srivastav 

Formula for Validation error in flows

I need to add a validation error message for an input in Flow.

I have a Phone field where I have maintaned a validation, where the phone number should be of length 10, it should not start with 1. I'm using the below formula.
 AND( LEN({!School_Phone_Key})=10,
NOT(REGEX({!School_Phone_Key} ,"^[a-z A-Z]*$")) ,
NOT(LEFT({!School_Phone_Key}, 1) = "1")
)

Now I also need to check if any symbol is presnt in the field, it should be restricted if the 10 digit number has any symbol. Can someone please guide me with the formula.

Hara SahooHara Sahoo
The phone field doesn't accept the inbuilt formulas.
You should just add ^(([0-9]{3}) |[0-9]{3}-)[0-9]{3}-[0-9]{4}$  to the pattern match
hs ashs as
Can you share the whole program of this scirpt? I want to try it for my thordrc (https://thordrc.com/makita-robot-vaccum-reviews/) website that hosted on Dynamic website.
fsrtgfd grdhnffsrtgfd grdhnf
I think with this information no one can fix this issue or guide you please give the details about the script or you can visit here (https://igi2downloadforpc.com/) to learn about it manually.
Rakul SrivastavRakul Srivastav

It's not a program, I need a validation rule for  phone field which needs to have the conditions:

1) length of phone number field should not be greater than 10
2) the first number should not be 1
3) the field should not allow any characters or alphabets, only numbers allowed.

The formula i have is working for points 1,2 and i need help for the 3rd point. It's a validation rule i would need to add in FLOW