Custom button to Attach File

rss

Posted by Dan_C - Dec 19 ’14 at 05:50

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!

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 10 months 25 days
    #1 by Dmitry Kozlov Dec 22 ’14 at 08:15

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

    UploadAttachment();
    return false;
    
  • Dan_C
    Member
    Member for: 5 years 8 months 20 days
    #2 by Dan_C Aug 1 ’16 at 11:30

    [#1]: 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?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 10 months 25 days
    #3 by Dmitry Kozlov Aug 2 ’16 at 05:07

    [#2]: It's just an HTML-element that overlays the form.

Displaying 1 to 3 of 3 messages