This topic contains 1 reply, has 0 voices, and was last updated by michoel 7 years, 11 months ago.

  • Author
    Posts
  • #2294

    EKERP

    Hi all,

    I need to source an image field on to an invoice, however I need to set the syntax to give the image a maximum size in height or width, so for example, if someone uploads a 3000×2000 image to that field, it would display on the form as a max of 400px in height, and then set the width automatically to keep the correct scale.

    I’ve tried bringing through the field as a ${record.fieldname} and the image displays fine, but does anyone know the correct syntax to insert to put in a max size?

    ${record.custbody_pf_wndw_img}

    Thank you.
    This is a cached copy. Click here to see the original post.

  • #2295

    michoel

    I sincerely hope there is a better way, but this is the best I could come up with:

    Code:
    ${record.custbody_pf_wndw_img?replace(‘img src’, ‘img width=”50px” height=”50px” src’)}

You must be logged in to reply to this topic.