Your boss, Mr. Pointyhaired, is worried about data quality in Salesforce.
He came up with an ingenious idea:
Make users type in the email address three times.
Only if the same email address is entered three times then the email address will be updated.
Solution
Create and activate a Screen Flow.
User enters the email address to three email address fields
User clicks "Next".
If the same email address was entered three times then Update the Contact Email
Create an Action for your Screen Flow.
Add your action to the Contact Page Layout.
Test Case 1: CONTACT - Update New Email Address - Positive
login
click "Search..."
enter "Avi Green"
click "Contact" above "Show more results for"
click "Update Email Address"
check that page contains "Enter new email address. In order to ensure data quality, enter it three times."
generate unique email, then save it as "generated_Email"
enter stored value "generated_Email" into "Email 1"
enter stored value "generated_Email" into "Email 2"
enter stored value "generated_Email" into "Email 3"
click "Next"
check that page contains stored value "generated_Email" under "Email"
Test Case: CONTACT - Update New Email Address - Negative
login
click "Search..."
enter "Avi Green"
click "Contact" above "Show more results for"
click "Update Email Address"
check that page contains "Enter new email address. In order to ensure data quality, enter it three times."
generate unique email, then save it as "generated_Email_1"
generate unique email, then save it as "generated_Email_2"
generate unique email, then save it as "generated_Email_3"
enter stored value "generated_Email_1" into "Email 1"
enter stored value "generated_Email_2" into "Email 2"
enter stored value "generated_Email_3" into "Email 3"
check that page contains "EMAILS ARE NOT OK"
click "Next"
check that page contains "EMAILS ARE NOT OK" // LOOPED TO THE SAME SCREEN IN FLOW
click "Close"
check that page doesn't contain stored value "generated_Email_1" under "Email"
check that page doesn't contain stored value "generated_Email_2" under "Email"
check that page doesn't contain stored value "generated_Email_3" under "Email"