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

Last published at: 2022-01-18 10:50:36 UTC
Delete

This tutorial is for Salesforce Classic. If you are using Salesforce Lightning, read 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. 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:
  2.  Click the 'New' button:
  3. At 'Label' enter "Record Validation Live", at 'Description' enter 'Record Validation Live feature'
  4. Check the checkbox 'Available for Lightning Experience, Lightning Communities, and the mobile app'.
  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="OBJECT_API_NAME" readOnly="true" showHeader="false" sidebar="false" title="RV Layout">    <recordval:rv2Rvlive recordId="{!OBJECT_API_NAME.Id}"/>
    </apex:page>
    This is how the Visualforce page configuration should look like with Opportunity as an example:
  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.

  1. Navigate to Salesforce Setup, Under 'Build' choose 'Customize'
  2. Click on 'Leads' and then choose 'Page Layouts'.
  3. Click edit in front of 'Lead Layout'. Example image:
  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.
  5. Use the settings specified in the example image below:
  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:
  7. Use the properties specified in the example image:
  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.