2

I need to create an app page with some multiline textboxes.

In those textboxes, user should be able to type users, and put as many users or groups in the normal sharepoint way: domain\user1; domain\user2, etc

How can I achieve this functionality in the multiline textbox?

2 Answers 2

4

If you mean the width, you just set the width of the PeopleEditor control.

<SharePoint:PeopleEditor Width="300" ID="myppl" runat="server" AllowEmpty="false" MultiSelect="true" />
4
  • this is what I was looking for.!!!! Commented Feb 17, 2012 at 15:01
  • btw, after the user has selected/typed the users, how can I know which users he typed? I meant I can do it with .Text property, but probably there is a better way to get the user id or something? Commented Feb 17, 2012 at 15:02
  • Please make a separate question of that and I'll promise to answer :)
    – Jussi Palo
    Commented Feb 17, 2012 at 15:07
  • I just did it:) sharepoint.stackexchange.com/questions/29610/… Commented Feb 17, 2012 at 15:11
2

Could you just override the style the people/group input field to be taller? I don't think you're going to be able to mimmic the functionality of the people picker easily.

Looking at both 2007 and 2010 person/group fields, you'd just need to apply a height property to the .ms-inputuserfield in your application page CSS to set a height to say 100 px. This will mke the input box appear as a multiline field but still retain the functionality of a person group field.

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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