Create Image Formula field using Static Resource #inSalesforce
Add the Image or File to Static Resource as in Visual
Now Create the formula field under the Object: Suppose
Status Indicator, return type Text
IF( ISPICKVAL( Status__c , 'Approved') , IMAGE("/resource/StatusImages/thumbs-up.png", "Accepted", 20, 20),
IF ( ISPICKVAL( Status__c , 'Rejected'), IMAGE("/resource/StatusImages/thumbs-down.png", "Rejected", 20, 20),
IMAGE("/resource/StatusImages/draft.png", "In-Process", 20, 20)))
Verify and Test
Reference: https://trailhead.salesforce.com/content/learn/projects/add-business-logic-to-a-travel-approval-app/create-formula-fields-travel
Comments
Post a Comment