function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Is there a way to make the email field not click-able?

For a contact, you can click on the email field to send an email to that email address, and that functionality is automatically there. I want to know if there is a way to have that field become un click-able (as in you can't click it to send an email to that email address) when the Email Opt Out field is true. Does anyone know if that is possible?

Best Answer chosen by Admin (Salesforce Developers) 
ForceMantis (Amit Jain)ForceMantis (Amit Jain)

If you have visualforce page you can conditional display a outputText or outputField based on Email Opt Out field, that should solve the problem.


On native layouts you can probably build a formula field that display plain text or hyperlink conditionally, and show this formula field on layout instead of Email Field.


Let me know if you need further help