For attaching files along with an entity form through the portal, we can make use of the Add Attach File section in the Additional Settings tab of Entity Form.
For e.g. in the below Contact Us form, we have checked Attach File check box which basically add the File Control to the web page in the portal.
Allow Multiple Files lets the user attach multiple files. Label would be the label for the control.
Attach File Required option makes attaching a file mandatory and the Required Error message shows the associated error message.
Attach File Save Option– Notes i.e. files are stored as attachment to notes.
Let us see how the settings effects the display and functionality in the Portal.
Attach File label with required symbol à
Clicking on Submit without attaching a file à
Attaching multiple filesà
Clicking on Submit after entering all the required fields à
Opening the lead record inside CRM shows the attachments added to the notes à
Hope it helps..