I have a requirement to display an Alert image that I have uploaded as a static resource to the User who is viewing the record only if the User is owner of the record.
Can someone please guide me here?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Assuming it to be a formula field, this is how you should proceed :
Create a formula field on Object with below formula :
IF( $User.Id == OwnerId ,IMAGE("/resource/OwnershipImage", "I am owner",40,600),''))
40,600 is the height and the width respectively you are looking to set for this image.
You can also set the default image if you want in the Value if No part of the IF formula we used