Page 1 of 1

Custom button to Attach File

Posted: 19 Dec 2014
by Dan_C
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!

Re: Custom button to Attach File

Posted: 22 Dec 2014
by Dmitry Kozlov
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;

Re: Custom button to Attach File

Posted: 08 Jan 2016
by Dan_C
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?

Re: Custom button to Attach File

Posted: 02 Aug 2016
by Dmitry Kozlov
It's just an HTML-element that overlays the form.