How to add Record Validation Live to Standard Object page layout in Salesforce Classic

This tutorial is for Salesforce Classic. If you are using Salesforce Lightning navigate to this article.

Step 1 Create Record Validation Live Component

Before starting this tutorial, locate the API name of the standard Object you wish to use. Find the list of API's here. For this tutorial, we will use 'Opportunity'.


1.1 Create a visual force page for Record Validation Live. Navigate to Salesforce Setup, then under 'Build' click the arrow next to 'Develop' and choose 'Visualforce Pages'. Example image:
1.2  Click the 'New' button: 
1.3  At 'Label' enter "Record Validation Live", at 'Description' enter 'Record Validation Live feature'
1.4  Check the checkbox 'Available for Lightning Experience, Lightning Communities, and the mobile app'.
1.5  At 'Visualforce Markup' field, enter the following code. Make sure you replace *API_NAME* with the API name you find at beginning of this tutorial.

    <apex:page standardController="*API_NAME*" docType="html-5.0" sidebar="false" showHeader="false">
<script>
    if ((typeof sforce != 'undefined') && (sforce.one != null)) {
        sforce.one.navigateToURL('{!URLFOR($Page.recordval__rv2Layout,null,['id' = Id])}');
    } else {
        window.location.href = '{!URLFOR($Page.recordval__rv2Layout,null,['id' = Id])}';
    }
</script>
</apex:page>
This is how the Visualforce page configuration should look like with Opportunity as an example:



1.6 Click 'Save'

Step 2 Add RV Live to your Custom Object page layout

Add RV Live to your custom object page layout. In this How-To, we are adding the 'Duplicate Check Live' feature to the Lead page layout. Add this feature to any other Object (Custom Object) by following the same steps, in the Object that you choose.


2.1 Navigate to Salesforce Setup, Under 'Build' choose 'Customize'
2.2 Click on 'Leads' and then choose 'Page Layouts'. 
 2.3  Click edit in front of 'Lead Layout'. Example image:
 2.4   In the menu, scroll down to the 'Visualforce Pages'. Drag and drop a 'section' to the top of the Page Layout.

Click here to watch a short video of how to add RV Live to your page layout in Salesforce Classic.
 2.5  Use the settings specified in the example image below:
2.6   Move your mouse over the 'rv2LayoutLead' visual force component. At the end of the visual force component, click on the button to edit its properties. Example image:
 2.7   Use the properties specified in the example image: 

 2.8 Now make sure to 'Save' everything done till now. Image Example:

Step 3 Configure Record Validation Live

Apply and configure a scenario for Record Validation Live

For Address Validations navigate to this article.
For Phone Number Validations navigate to this article.
For Email Validations navigate to this article.
 

Having trouble?

Can't find what you're looking for? We are always happy to help.