Adjust Picture Size on a form

  • 0
  • 1
  • Question
  • Updated 4 months ago
  • Answered
I would like to adjust the size of picture I have displaying on my form using a Rich Text formula field.  The formula pulls the image from a Company website by combining the website address with the employees personal number (a field on the form as well).  Currently, my formula looks like:
"<img src=\"" & "https://rostr.disney.com/ROSTRWS/rest/v1/photos/rostrid/"; & [Personnel Number] & "\" />"

This brings the image back but it is too large and throws off the aesthetics of my form, I need to resize but I'm not sure how to do so.

Any help would be greatly appreciated.
Photo of Stephanie

Stephanie

  • 722 Points 500 badge 2x thumb

Posted 4 months ago

  • 0
  • 1
Photo of Evan Martinez

Evan Martinez, Community Manager

  • 8,774 Points 5k badge 2x thumb
Hi Stephanie,

It is possible to manipulate the size of the image, I most often do this by adding width= to the img tag just before the src. It would typically look like the snippet below

"<img width=\"500\" src=\"" (rest of formula)

Then you can adjust the 500 up and down till you get the size that best fits your needs. 
Photo of Stephanie

Stephanie

  • 722 Points 500 badge 2x thumb
A million thank yous :)
(Edited)