I've never had to do extensive Visualforce, so I'd like to know if the following is possible.
Show Division Logo On Multiple Objects
- On any given Object, have a field called "Division_Logo__c" which would have a three-letter code.
- A Visualforce Page/element (or other?) which could be used across multiple Objects, so when placed on a page layout, it reads from the Division_Logo__c" field and then shows IMAGE() similar to a Formula text field
I already have this on several objects as a Formula text field with IMAGE() showing the appropriate logo based on another field.
I'd like to make the displaying of a Division Logo something that I don't have to copy-paste the same Formula text field to each and every object it's needed in (more importantly, so I maintain one copy of the "code").
Any thoughts? Doesn't have to be VF. I'm just looking for a one-size fits-all solution. Having to make a VF page for each object would be just as bad as the current "formula per object" method, UNlESS the code itself could be centralized for maintenance in one place while being usable across "all" objects.
Ideal but unlikely: A way to have a Formula field which references centralized code (similar to Picklist Value Sets). Very loosely related is the "Last Chatter Date" code you can add, which IF THERE IS a field "LastChatterDate__c" on the object, the datetime is updated every time someone Chatters on a record therein.