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?

  • Do you mean- alert image on record standard view page in a formula or as a Pop Up? – Amit Bangad Dec 8 '14 at 7:23
  • Yes in a formula – Testing_SFDC Dec 8 '14 at 11:44

Assuming it to be a formula field, this is how you should proceed :

  1. Upload the image in static resource. Lets consider name is OwnershipImage
  2. Create a formula field on Object with below formula :

    IF( $User.Id == OwnerId ,IMAGE("/resource/OwnershipImage", "I am owner",40,600),''))

  3. 40,600 is the height and the width respectively you are looking to set for this image.

  4. You can also set the default image if you want in the Value if No part of the IF formula we used

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.