SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to change Custom Property of Webpart using javascript.

Does anyone have any ideas on how to accomplish this?

share|improve this question
Can you be more specific? with property do you mean any public property of your web part class which appears on web part edit panel? that is what i understand from custom property and if so, it not possible. – megusta Nov 17 '11 at 14:18
up vote 3 down vote accepted

there are some options but imo easiest one is to use Client Object Model: see SP.WebParts.WebPart.Title

share|improve this answer

This is an old question, but I figured I'd post a solution I came up with. I haven't tested in SharePoint 2010, but it's possible to update any web part property using JavaScript CSOM:

share|improve this answer
Thanks for posting! One of our guidelines here is that we do not accept link only posts. If you could, please summarize your blog post so that if it is deleted or moved in the future others who come looking can still get an understanding of what you found. – Robert Kaucher Mar 4 '14 at 2:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.