Custom "UPLOAD" button

  • 1
  • Question
  • Updated 4 years ago
  • Answered
I have a table with an attachments field.  It works fine, but I don't want the large green button appearing in the table.  I have set up a second field that contains a small button linked to the attachment.  My issue is that I'm not certain how to upload the attachments without the original field.  Is this possible?

Photo of Scott

Scott

  • 2,722 Points 2k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,470 Points 10k badge 2x thumb
Hi Scott,

This would probably be best accomplished with a custom field renderer.  You could just run the standard renderer for edit mode, but then write something simple for read mode that just showed the "View File" button.  There's a lot of info about writing custom field renderers for tables here.
Photo of Scott

Scott

  • 2,722 Points 2k badge 2x thumb
Thanks Ben!  Hey wait, aren't you Superman's neighbor!?!?
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,470 Points 10k badge 2x thumb
Yes, occasionally I will watch the Kent family farm.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
And believe me,  some of the Superman superpowers have rubbed off on Ben...