function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
trigger ContactTrigger on Contact (before insert) { String userEmail = USerInfo.getUserEmail(); for(Contact objContact : Trigger.New){ if(objContact.email != null && objContact.email == userEmail){ objContact.EmailSameAsContact__C = true; } } }
Try bellow trigger after using your contact's checkbox field api name
Trailhead for Trigger
https://trailhead.salesforce.com/en/modules/apex_triggers/units/apex_triggers_intro