Is it possible to add a webpart to a page using Javascript. I want to add a webpart to a specific page whenever a button is clicked.
1 Answer
Here are the steps you should execute
- Get the XML for webpart
- Load Limited Webpart Manager object
- Add web part.
You can find details on https://msdn.microsoft.com/en-us/library/office/hh185010(v=office.14).aspx#sectionSection1
Add an existing WebPart Using the Sharepoint client object Model