You need to sign in to do that
Don't have an account?
Ab
Validation rule on Text field | Mandatory | Check size
Hello,
I have to implement 2 validation rule on a text field
1st one to check the required. (make field mandatory)
2nd one will be fired if 1st is OK. It will check if the field has 14 characters.
I also need a custom error messages.
Thank you for suggestions
I have to implement 2 validation rule on a text field
1st one to check the required. (make field mandatory)
2nd one will be fired if 1st is OK. It will check if the field has 14 characters.
I also need a custom error messages.
Thank you for suggestions
replace Address_Line_3__c with your Text Field name.
(Address_Line_3__c=null)||(LEN( Address_Line_3__c )<14)
All Answers
replace Address_Line_3__c with your Text Field name.
(Address_Line_3__c=null)||(LEN( Address_Line_3__c )<14)
Hi Sandrine,
The solution as provided by Dheeraj is certainly correct, but if you require different custom messsages I suggest to create 2 seperate validation rules.
e.g:
Address_Line_3__c=null -> Show the message that the field is required
AND(NOT(Address_Line_3__c=null),LEN(Address_Line_3__c)<14) -> Show the message that the field does not contain 14 characters