Salesforce Platform Developer I (legacy) — Question 83
A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning
Experience.
What should the developer do to provide the custom user interface?
Answer options
- A. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience.
- B. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience.
- C. Override the Contact's Edit button with a Lightning component in Salesforce Classic and a Lightning component in Lightning Experience.
- D. Override the Contact's Edit button with a Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience.
Correct answer: A
Explanation
The correct answer is A because it allows the developer to use a Visualforce page for Salesforce Classic and a Lightning component for Lightning Experience, ensuring compatibility with both environments. Options B and D incorrectly suggest using a Lightning page, which is not compatible with Salesforce Classic, and option C does not utilize Visualforce, which is necessary for Classic compatibility.