Skip to main content
Question

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

  • Aug 7, 2014 12:12 AM UTC
  • 0 replies
  • 186 views

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

This topic has been closed for replies.

  • Registered
  • Aug 7, 2014 10:35 PM UTC
It is best to control the image size prior to upload.

KeithJusas
Forum|alt.badge.img+7
  • Registered
  • Aug 7, 2014 11:12 PM UTC
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

  • Author
  • Registered
  • Aug 7, 2014 11:47 PM UTC
Thank you! Works exactly as expected!

  • Registered
  • Feb 24, 2015 9:32 PM UTC
Can we set the field such that the user gets an error message if the file is too large?

  • Registered
  • Dec 2, 2015 1:27 AM UTC
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.

  • Registered
  • Feb 16, 2017 12:26 AM UTC

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!