Hey guys, today in this post we are going to learn how to write a Validation Rule on Lead for the Website Field is Mandatory before Lead Status Change to “Working – Contacted” Stage in Salesforce.
A validation rule can contain a formula or expression that evaluates the data in one or more fields and returns a value of “True” or “False”. Validation rules also include an error message to display to the user when the rule returns a value of “True” due to an invalid value. To know more about Validation Rule, Click Here.
Final Output →
Other related post that would you like to learn in Salesforce
- Find the below steps ▾
Website Field is Mandatory Validation
Step 1:- Create a validation rule in Lead using Error Condition Formula.
Follow the below steps to create validation rule on Leads
Setup >> Object Manager >> Lead >> Validation Rule >> Website_Mandatory_Validation
Don’t forgot to make enabled Active of checkbox.
IF( ISPICKVAL( STATUS, 'Working - Contacted'), ISBLANK( Website ), NULL)
Set Error Message in Validation Rule
Step 2:- Set Error Message and Error Location in Validation Rule.
What is validation rules in Salesforce with examples?
Validation rules in Salesforce verify the data that a user enters while creating or editing a record. It helps to assure that data should meet the standards specified by the organization and the user.
What is the validation rule?
A validation rule is one way to restrict input in a table field or a control (such as a text box) on a form. Validation text lets you provide a message to help users who input data that is not valid.
What are the validation rules in Salesforce admin?
Validation rules use the formulas to define the criteria: single or multiple that must be verified in order to save the record. If the defined rules are not met then admin-defined error messages will be displayed to the users, so that they can take the needed steps to pass the verification process.
Related Topics | You May Also Like
Our Free Courses →
👉 Get Free Course →
📌 Salesforce Administrators 📌 Salesforce Lightning Flow Builder 📌 Salesforce Record Trigger Flow Builder |
👉 Get Free Course →
📌 Aura Lightning Framework 📌 Lightning Web Component (LWC) 📌 Rest APIs Integration |