Hi,
I am new to SharePoint development. We have a requirement that needs a form with a button to open a pop-up. The pop-up window must display the document library from which a user can choose documents and attach them to the form, just like how the 'Attachments' button works for local files. I would like to know if this can be achieved using JavaScript. We are using SharePoint 2013 on-prem.
Any help would be appreciated.
Thanks!


