You need to sign in to do that
Don't have an account?
Keith Shapiro
Yes or No
I have a custom object that has an email field. I would like to either, show the email matches the email field in the lead record or if it's possible not show the field at all if it does match. Sometimes people use a different email to join a webinar than whats in the record
Thanks!
Thanks!
Put email addres field in an outputpanel and use "rendered" attribute, the value of rendered attribute links to a boolean in custom controller.
<apex:outputpanel id='xxxx' rendered = '{!displayemail}'>
<apex:outputfield value = '{!email}'/>
</apex:outputpanel>
If you are using standard page, then you can also use the FORMULA field (code snap below) to control the display value where if email matches then show email else it can be empty (or any other value like "Mismatched Email").
With this solution, we will refer only Formula field (instead of Email field) on page layout.
if( Test_Email__c = Lead__r.Email, 'Match Lead Email', 'Not Match Lead Email: '+Lead__r.Email )
So it will display "Match Lead Email" if they are same, and display "Not Match Lead Email" together with the Email of Lead if it is not same.
if yes, then what is its API Name and if it is not Lead__c then you need to replace it with appriopriate api name.
For Eample: MyLead__c then replace "Lead__r" with "MyLead__r".
In case this too is not working, then requesting you to share the screenshot of your custom lookup(Lead) detail.
Thanks,
here Yuchen hopefully this is what you were asking for.
IF(Webinar_Lookup__r.Email = Webinar_Email_Given__c, Webinar_Email_Given__c, "")