How to use sp-attachment-button in a table

yundlu316
Kilo Guru

Our team is developing a Record Producer Macro variable that links to a widget.  The widget is a table and we want to have the sp-attachment-button appear on every row of the table.  We are able to get the button to show up, but nothing happens when the button is clicked.  We tried to look up some documentation on how the sp-attachment-button actually works, but couldn't find a whole lot of information.  Does anyone know if we can use the ootb sp-attachment-button on our custom table?  

Our code for the button looks like this:

<td align="center" aria-label="Attachment" title="Attachment">
  <sp-attachment-button></sp-attachment-button>
 <span> ${Add Attachment} </span>
</td>

The front-end looks like this:

find_real_file.png

Any information/advice is appreciated!

2 REPLIES 2