Has anyone had any luck adding an image to a form ...
# administration
j
Has anyone had any luck adding an image to a form for a custom record type? The image url is stored in a field on the record type and I'd like to display the image at that url on the form for the user to see.
a
Use an inline html field and set a formula in the defaulting tab of your field ‘<Img src =“(your url)”>’
j
What if the url varies by record?
a
Yes sorry forgot the url was another field on the record ‘<img src=“‘|| {custrecord_urlfield} ||’”>’
j
Awesome! Thank you!!!!
a
You may have noticed already but just wanted to point out that is a double quote after the equals, then a single quote
Then do the same in reverse at the end of the URL field concatenate function
Also if you want to mess with the image size you can add width="300"; height="200" to the end
Like this 'img src="' || (custrecord_urlfield} ||'" width="300"; height="200"/>'
j
Works perfectly! Thank you very very very much!!