The standard Salesforce lead conversion page allows a user to create a new account and contact record or merge with existing records, and optionally create a new opportunity record. Information from the lead is copied to the existing or new records based on the lead field mapping configuration. If a user wishes to specify information after clicking on the Convert button, they must exit the conversion and edit the lead record.
In this recipe, we will create a Visualforce page to allow a user to convert a lead and in addition to creating or merging with existing records, populate additional fields on the opportunity that is created as part of the conversion.
This recipe makes use of a controller extension so this must be present before the Visualforce page can be created.