Discussions

Expand all | Collapse all

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

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

    Posted 08-06-2014 20:12

    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



  • 2.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Top
    Contributor
    Posted 08-07-2014 18:35
    It is best to control the image size prior to upload.


  • 3.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Posted 08-07-2014 19:12
    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


  • 4.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Posted 08-07-2014 19:47
    Thank you! Works exactly as expected!


  • 5.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Top
    Contributor
    Posted 02-24-2015 16:32
    Can we set the field such that the user gets an error message if the file is too large?


  • 6.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Posted 12-01-2015 20:27
    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.


  • 7.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Posted 02-15-2017 19:26

    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!




  • 8.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Top
    Contributor
    Posted 02-18-2017 05:56
    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.


  • 9.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Posted 02-20-2017 18:51
    Unfortunately, that isn't the problem. I've got the correct field id in the formula. Thanks though!


  • 10.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Top
    Contributor
    Posted 02-21-2017 05:00
    What is the file type / extension that you are uploading to the file attachment field?  ... just trying to get to the bottom of this.


  • 11.  RE: Is it possible to set the image size of an attachment field on an exact form?

    Posted 03-07-2017 22:04
    I edit the page direct and just added this where I wanted the image:

    <p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><img  width=347 height=63
      src="/up/bmkpfj7j5/g/rc/eg/va/logo.png"></span></p>