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
prakash chaudharyprakash chaudhary 

Plzz Create formula

How to give formula for following condition...

 

My object name is Insurance__c.

If user select Record Type as Life Insurance then value should be passed of field named Death Benefit.

If user select Record Type as General Insurance then value should be passed of field named Sum assured.

 

Please tell me how to create formula for such condition....

Best Answer chosen by Admin (Salesforce Developers) 
srikeerthisrikeerthi

Hi

 

You can create the Formula field in this way..if you have only these 2 recordtypes

give the LifeInsuranceid in the Recordtypeid.

IF(RecordTypeId  = '(LifeInsuranceid)',' Death Benefit. ',' Sum assured')