sp-attachment-button not opening dialog box

yundlu316
Kilo Guru

Hi Experts, our team is trying to utilize the ootb sp-attachment-button in a custom widget, but can't seem to get it to open a dialog box to choose files.  All we have in our code so far is <sp-attachment-button></sp-attachment-button>, which brings up the paperclip icon for attachments, but when we click on it, nothing happens.  Is there additional ootb code that we need to leverage in order for it to open up the dialog box so we can choose files to upload?

2 REPLIES 2

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

have a deep look to the following similar threads, it might give you the idea to achieve it:

https://community.servicenow.com/community?id=community_question&sys_id=68e4832ddbd8dbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=f4301be5dbdcdbc01dcaf3231f96...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Did this solve your question? Or do we need to follow-up on this?

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto