How to setup Data Validation for new/edit page overrides for Leads, Contacts and Accounts
This setup procedure overrides the standard new and/or edit page layouts for Leads, Accounts or Contacts. Â This option allows for similar functionality to standard salesforce, but includes auto-complete and address validation.
The alternative option for the buttons and links for address validation provides one option for using the address validation. Â This option places a button and/or a link that when press pops up a screen for entering the address information.
Address buttons and links auto-complete and new/edit page override is available for the following objects in Salesforce CRM:
- Leads
- Contacts
- Accounts
You must first have setup data validation with the Data Validation Provider:
Quick Steps for installation:
- On the objects you wish to add validation, do the following:
- Navigate to setup > customize > {object} > Buttons, Links and Actions
- Press edit next to "New" link - select visualforce page AAkPay__{object}Edit and Save
- Press edit next to "Edit" link - select visualforce page AAkPay__{object}Edit and Save
If you wish to change the section headings, please see: How to change field names, section heading names and information messages
1. Overriding NEW Page for Leads to include address auto-complete and validation
3. Changing the Lead Page Layout
As the new and/or edit page layouts have been replaced with the Payments2Us Visualforce page, the standard salesforce edit layout option is no longer available.
However, you can still change the layouts and fields that are shown/available by change the fields that appear in the field set.
The form is made of of several fieldsets. Â These are:
- leadSectionInformation
- leadSectionAddress
- leadSectionAdditionalInfo
- leadSectionDescription
A special fieldset called leadSectionOrder is used to control the order that each of the sections appear.
3.1. Edit Lead Field Sets
- Navigate to setup > Customize > Leads > Field Sets
- Click edit next to the section you wish to amend
3.2. Changing fields in the Field Set
You can add/remove fields from the section, change the display order and make required/optional
- Add fields by dragging them from the available fields pallet to the fields that are in the Field Sets section
- Change the order of fields by dragging them up/down in the fields in Field Set section
- Double click a field to make it required/optional
4. How to reorder the sections on the Lead page layout
5. Overriding NEW Page for Accounts to include address auto-complete and validation
6. Overriding EDIT Page for Accounts to include address auto-complete and validation
7. Changing the Account Page Layout
As the new and/or edit page layouts have been replaced with the Payments2Us Visualforce page, the standard salesforce edit layout option is no longer available.
However, you can still change the layouts and fields that are shown/available by change the fields that appear in the field set.
The form is made of of several fieldsets. Â These are:
- accountSectionInformation
- accountSectionAddress
- accountSectionAdditionalInfo
- accountSectionDescription
A special fieldset called accountSectionOrder is used to control the order that each of the sections appear.
7.1. Edit Account Field Sets
- Navigate to setup > Customize > Accounts > Field Sets
- Click edit next to the section you wish to amend
7.2. Changing fields in the Field Set
You can add/remove fields from the section, change the display order and make required/optional
- Add fields by dragging them from the available fields pallet to the fields that are in the Field Sets section
- Change the order of fields by dragging them up/down in the fields in Field Set section
- Double click a field to make it required/optional
8. How to reorder the sections on the Account page layout
9. Overriding NEW Page for Contacts to include address auto-complete and validation
10. Overriding EDIT Page for Contacts to include address auto-complete and validation
11. Changing the Contact Page Layout
As the new and/or edit page layouts have been replaced with the Payments2Us Visualforce page, the standard salesforce edit layout option is no longer available.
However, you can still change the layouts and fields that are shown/available by change the fields that appear in the field set.
The form is made of of several fieldsets. Â These are:
- contactSectionInformation
- contactSectionAddress
- contactSectionDescription
- contactSectionAdditionalInfo
A special fieldset called leadSectionOrder is used to control the order that each of the sections appear.
11.1. Edit Contact Field Sets
- Navigate to setup > Customize > Contacts  > Field Sets
- Click edit next to the section you wish to amend
11.2. Changing fields in the Field Set
You can add/remove fields from the section, change the display order and make required/optional
- Add fields by dragging them from the available fields pallet to the fields that are in the Field Sets section
- Change the order of fields by dragging them up/down in the fields in Field Set section
- Double click a field to make it required/optional