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
Anna SliwaAnna Sliwa 

Formula IF

Hi

I am trying to create a formula on Contact object called Relation which should show me who is a Member(has  activated contract) and who is Not a Member(if haven't got contract at all or contract is lapsed). I have created look up field to Client object and I have written this formula: 

IF(ISPICKVAL(Client__r.Type__c, 'Member'),'Member' , 'Non-Member')

 

Type__c is a picklist field on Client object.

unfortunately on all contacts Relation field showing up Member even there where a contact doesn't have contract (is not a client). What am I doing wrong?  

VinayVinay (Salesforce Developers) 
Hi Anna,

The formula looks good and this is working as expected when I tried from my end.

Make sure you select the appropriate account and client lookup field on contact detail page.

Thanks,