Custom button to Attach File

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Dan_C
Posts: 63
Joined: Tue Dec 02, 2014

19 Dec 2014

Hi Dmitry,

Right now I have some text telling people to use the Attach File button in the ribbon... But I'd prefer to create an attach file button in the form itself and maybe hide the ribbon.

Any suggestions on how to create a custom Attach File button?


Thanks!

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

22 Dec 2014

Yep, drop a button or a hyperlink onto your form and insert the following code into its OnClick property:

Code: Select all

UploadAttachment();
return false;

Dan_C
Posts: 63
Joined: Tue Dec 02, 2014

08 Jan 2016

Is there a way for me to hide the ribbon in the attachment form that pops up with this? Is it a separate form or what is it?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

02 Aug 2016

It's just an HTML-element that overlays the form.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests