Sunday, July 27, 2014

Add Attachment Field in SharePoint 2013 List Form

Requirement: Add attachment column to a custom new/edit forms in SharePoint 2013.

Create new custom list forms for New and Edit in SharePoint designer 2013, Add this code to the custom list form in the location where you want the attachment field to appear.

<td colspan="2">
  <td style="width:170px">
       <b>Upload Approval E-Mails:    </b>
  <td valign="top" class="ms-formbody" id="attachmentsOnClient">
   <input type="file" name="fileupload0"  id="onetidIOFile" size="50" title="Name">   </input>
   <input name="attachButton" type="button" value="Attach" onclick='OkAttach()'  />
Result: Here is the SharePoint custom edit form with attachment field.
add attachment field to sharepoint form

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

1 comment :

  1. why do i get a you must specify a non-blank value for file name [ok] popup message


Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...