
home / Integrations / Salesforce Sales and Service Cloud Lightning / Component configuration / Email Validation component Email Validation component Drag the EDQ Email Validation component from the Custom – Managed dropdown (on the left) and drop into the Details standard component (middle box) or component of your choice.
Full Answer
How to set custom validation error in Salesforce Lightning?
You can set the custom validation error in the lightning:input component. In below example, If you write John Doe in input field and press register, you will get an error message. Thanks for contributing an answer to Salesforce Stack Exchange!
What is an invalid input field in Lightning?
A lightning:input field that specifies a certain criteria or attribute, max , min, pattern, and so on, is invalid if the criteria isn’t met. You can provide a custom error message using attributes like messageWhenValueMissing, when it’s available on the component.
How do I ensure data quality in Salesforce?
Enforce the field as required in the field definition. See Require Field Input to Ensure Data Quality. Define validation rules to verify that the data a user enters in a record meets the standards you specify before the user can save the record. You can retrieve the error that’s returned by a validation rule using response.getError ().
What is the best way to work with Salesforce data?
When working with Salesforce data, we recommend that you use the lightning:recordForm, lightning:recordEditForm, lightning:recordViewForm, or force:recordData base components. They are built on Lightning Data Service, which ensures data consistency, while handling sharing rules and field-level security for you.

Prevent Invalid Fields from Getting Submitted
In Creating a Form we implemented a basic form with built-in validation for required fields and specific types. Let’s customize the submission behavior such that the form displays errors on invalid fields. Customized behavior is useful if a user tries to submit an empty form and to identify errors in a field.
Example
The Aura Components Basics Trailhead module walks you through building a form for creating an expense record.
Field Validation Considerations
Client-side field validation provides an initial check for user data before submitting it to the server. Implement your own server-side validation to ensure that user data is saved in the expected format. Consider the following guidelines.
