Allowing visitors to upload a file to Salesforce using Forms

created

If you wish, you may include a field or fields that allow visitors to upload a file to Salesforce as part of the form submission process. To do this, you must have the Notes & Attachments object enabled for the Salesforce object to which the Forms page is submitting. You will also need to make sure that the Notes & Attachments Related List is included on the page layout for the object.

Once this has been done, add a field the visitor can use to upload a file through the following:

  1. Open the Forms page to which you wish to add the file upload field
  2. Click the Form tab
  3. Click Add Attachment
  4. For Name, enter a value of your choice. This will only be visible in the administrator. 
  5. For Label, enter text you wish to appear to the visitor 
  6. For CSS Keywords, enter a value, if you wish to alter the standard display of the field. This is optional.
  7. For Published, choose Yes
  8. For Description, select whether you wish the Description field to be displayed to the visitor
  9. For Description Label, if you selected Yes for Description, you may customize the label which will appear to the visitor
  10. For Enable Edit, choose whether or not you wish this Note & Attachments field to appear to the visitor if you are using this Forms page in its Edit mode which allows visitors to alter existing data in Salesforce. If so, they will be able to upload new files when editing.
  11. For Enable File List, if you have chosen Yes for Enable Edit, you may choose to display the list of Notes & Attachments for the edited record. This list will allow visitors to view these records and, if they choose, delete existing records.
  12. For Max File Size, customize the maximum allowable size for a single file upload in MB. NOTE: For site performance and data storage concerns, it is recommended that this maximum be kept to a reasonable limit. Adhering to the 2 MB default is advisable. We recommend no greater than 10 MB, if the limit need be increased for your form. 
  13. For File Types, customize the file types you wish the visitor to be able to upload
  14. Click Save
  15. Use the drag and drop tools to place the Add Attachment element where you wish it to appear on the form
  16. If you wish the visitor to be able to upload multiple files in a single form submission, repeat this process to include multiple Add Attachment elements. If you are using the Forms page in edit mode, make sure that only one of those Add Attachment elements has Enable File List set to Yes.

If you wish to make the uploading of this attachment required as part of Form submission, on the Form tab, click the red X in the Required column for that element.

Have more questions? Submit a request
Article is closed for comments.