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
gizmo100gizmo100 

Validation rule to get error if text field does not start with A or B


Hello!!


I´m trying to create a validation rule  to get an error if the TEXT field  is not starting with 

 

http://

Or  

http://www.

 

 

Thanks!

Gizmo

Best Answer chosen by Admin (Salesforce Developers) 
gizmo100gizmo100

 

 

Got it: :)))

 

AND(

NOT(BEGINS( field__c , "http://")),

NOT(BEGINS( field__c, "http://www.")))