With the file attachment element, you can place a file attachment upload field on the form for users to upload documents to the form. For each file attachment element, you choose which Documents part to use for file attachment settings. Uploaded documents appear in Forms on the Data tab.
Option |
Function |
Label |
Enter a label for the field. |
Hide label |
If the label is for internal purposes and should not appear on the website, select Hide label. |
Required |
To require users to select a value in the field before they can submit the form, select Required. |
Required message |
If the field is required, enter text to appear beside it when users attempt to submit the form without selecting a value in the field. |
Inline help |
Enter instructional text or additional information about the field. A link beside the field allows users to access the text. |
Custom CSS class |
To override the default Cascading Style Sheet (CSS) format of the page where the form appears, enter a custom CSS class. For information about style sheets, see Style Sheets. |
Select document part |
To upload files, the file attachment element uses the Document part to determine how files upload. Search for and select a document part to use. You can set up Document parts for each file attachment element used on a form, or create one Document part for all your file attachment needs. For information about the Document part, see Documents. |
Max file size |
This field displays the maximum file size allowed for document uploads. To edit the maximum file size, you need to edit the setting on the Document part. |
Allowed file types |
This field displays the MIME file types allowed for document uploads. To edit the MIME file types, you need to edit the settings on the Document part. |
Default file name |
Enter a default name for file uploads. If you do not enter a default file name, the file name as uploaded by the user defaults. |
Prefix form name |
To prefix your file name with the name of the form, select the checkbox. When a user uploads a file, the name will be <form name> - <default file name> |