Is there anyway to create an image for a button with a variable title for use in a formula field?
A common request I get is to put buttons in the page layout itself as the buttons at the top tend to get overwhelming. Creating a faux button with a formula field has been a great approach, I create a button image with the title I need and upload to static resources and then create the formula field. For example
HYPERLINK('/apex/target?id='Id, IMAGE('/resource/myBtn', 'Do It'))
This approach is working great, but has two pain points, 1) I have to create a new image for the title of each new button (i.e. need a different button for "Send Email" and another for "Launch Batch"), and 2) I'm quickly creating an absurd number of static resources which is cluttering things up.
Is there anyway to get create the button image dynamically in Salesforce so I could pass in the title in the formula field and not have to keep creating buttons? For example
HYPERLINK('/apex/target?id='Id, IMAGE('/apex/buttonImg?title=Do+It', 'Do It'))
HYPERLINK('/apex/target?id='Id, IMAGE('http://buttonmaker.com?title=Do+It', 'Do It'))