2

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
  • Can you put some more specification about what you need? Commented May 25, 2016 at 13:12

1 Answer 1

3

Here are the steps you should execute

  1. Get the XML for webpart
  2. Load Limited Webpart Manager object
  3. 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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.