Forum Discussion

JuanJuan's avatar
JuanJuan
Qrew Trainee
10 years ago

Is it possible to set the image size of an attachment field on an exact form?

I have an exact form that outputs multiple photos with a brief description under or above each photo. I want the print out to be one photo-with-description per page, and I have accomplished this by inserting page breaks between each photo-and-description set.

The problem I'm having is that the photo size in the printout is too big and this is pushing the photo description onto the next page. Is there a way to set a specific size of these photos on my exact form?

Thanks in advance.

Juan

10 Replies

  • try creating a new formula text field (Allow some HTML tags to be inserted in the field should be checked)

    "<div><img src=\""&URLRoot()&"up/"& dbid() & "/a/r"& [Record ID#] &"/eFF/v0\" height=50;width=50;></div>"


    FF=file attachment field id on your table


    use this new field in the EF
  • Can we set the field such that the user gets an error message if the file is too large?
  • I used a variation on this theme.   My Exact form is indenting slightly.   The <div> in the text formula field reset this, so I took it out and it worked just fine.  Thanks.
  • I'm trying to use this formula (with and without the <div>) and it's not working for me. :(

    All that displays is a small black box with an x in the middle. Thoughts on how to fix? Thanks!


    • MCFNeil's avatar
      MCFNeil
      Qrew Captain
      This could be because you need to change the "FF" in the formula to the 'field ID' of your attachment field.

      So if your fid for your attachment field was 25 it would read;

      "<div><img src=\""&URLRoot()&"up/"& dbid() & "/a/r"& [Record ID#] &"/e25/v0\" height=50;width=50;></div>"
      _Then adjust the height and width as needed.
    • KarenHenke's avatar
      KarenHenke
      Qrew Cadet
      Unfortunately, that isn't the problem. I've got the correct field id in the formula. Thanks though!
    • MCFNeil's avatar
      MCFNeil
      Qrew Captain
      What is the file type / extension that you are uploading to the file attachment field?  ... just trying to get to the bottom of this.