SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 have the following code in a webpart I am developing.

public string BankNames { get; set; }

When editing the "Shared Webpart Properties", it shows up fine in the "Data" section as shown. However, it has the serious limitation that you can only enter a single (although very long) line of text, as the field is shown as an <input type='text'> element.

Is there any way to make it show up like a <textarea> element, or have a [...] button next to it that will allow people to open a pop-up editor to allow multi-line text?

I am aware that you can create a ToolPart class, but I don't want a special area where the fields are shown and have to be rendered manually - for what I need, it seems like a total overkill.

I am using SharePoint 2007 - is there any simple way to do this?

share|improve this question


There are no out-of-the-box editorparts that display multilines or anything that have been tailored to your specific needs. The correct way of doing this is to use a custom EditorPart/ToolPart.

Technically, you could probably hack something together with jQuery, but I'll leave to others to explain how to do that. In any case, it would be more of an effort than simply creating a new EditorPart and overriding a couple of methods to get it exactly as you want.


share|improve this answer

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.