Skip to main content

Attachment

Collect files in a Yeeflow form and set which file types, sizes, and quantities users can upload.

Use Attachment to collect documents such as quotes, contracts, or receipts. Users select files from their device. Supported files, including PDFs and some Office documents, can open in the browser. Check the available actions on the submitted file for preview or download. Uploaded files count toward your account’s storage limit. For a field designed to display photos as images, use the Image control.


Add Attachment to the form

Open the form designer. In an approval form, find Attachment in the Controls panel and drag it into a section or container. In a list form, add the attachment field from Custom List Fields so uploads are stored with the list item. Approval form designer · List form designer


Basic of the Attachment field

Select the control and open Content → Basic. Set the Title to tell users what to upload, such as Supplier quotes. A new approval form control gets an Associated Variable. Use Edit to change its ID or name, or Reset to select an existing compatible variable. For a review task, bind its control to the same variable so reviewers can see the submitted files. Form controls and associated variables and fields


Appearance of the Attachment field

In Content → Appearance, turn on Upload multiple to accept several files. Set Max count to the number this field should accept. For example, allow up to three files for supplier quotes. Leave Upload multiple off for a single signed copy.

Use Text of upload button to enter a label or set it with an expression. You can also show file type icons, display the field title, and allow comments on the control.


Validation of the Attachment field

Open Content → Validation and configure the rules for this field.

  • Turn on Required to require an attachment before submission. Use Readonly on a form where users only need to review existing files.

  • Set Single file size limit (MB) for each uploaded file. Yeeflow documents a maximum of 400 MB per file. Set an appropriate limit within the range offered by your designer.

  • To accept only specific formats, turn on Restrict file types and select the allowed options. For additional extensions, select Other and enter them as a comma-separated list, for example csv,txt. To accept only PDF quotes, select PDF and clear the other options.

  • Use Default Value to provide starting files. Users can remove them while the field is editable. Use Custom Validation to add conditions and a message that tells users how to correct an entry. Custom Validation

Yeeflow’s Restrict file types settings with file categories and a comma-separated example in the Other field.

Preview the form with a supported file, an excluded file type, a file over the size limit, and one more file than the configured count. For a required field, also try submitting without a file.


Action call of the Attachment field

Create and save a form action. In the Attachment control’s Content → Action settings, select the action under Value Changed. The selected action runs when the attachment field’s value changes. Test adding and removing a file to verify the result. Form Actions


Style the Attachment field

Open Style to adjust the file cards and upload button. Preview the field with several files or a long file name.

Layout

Adjust Columns Gap and Rows Gap to set the spacing between file cards. Check the layout at desktop and phone widths.

Content

Set the file card’s width, height, and padding. Adjust filename typography and the file type icon size. You can set colors, the border, and corner radius for normal and hover states. Use Operation button for the colors of the file action buttons.

Upload button

Adjust spacing, typography, alignment, and normal or hover styles. Use Position → Start to place the upload button before the file cards or Position → End to place it after them.

Style of title

Use the shared title settings to adjust the field label’s layout and typography. Title of field controls.

Advanced Settings

Use Advanced to configure shared control settings. Save a sample submission, open it as a reviewer, and check which file actions that person can use. Advanced Settings Tab
​

Did this answer your question?