moopoo.net
Fishing, technology and anything else

Required Field Validation Group on PeopleEditor control

June 9th, 2010 by Matt

Very similar to my post on validation of the DateTimeControl, a PeopleEditor (people picker) control I was using was validating on each postback.
I created a required field validator with a ValidationGroup and to get the validator to look at the correct people editor field use the following code.

myRequiredFieldValidator.ControlToValidate = string.Format("{0}$downlevelTextBox", myPeopleEditor.ID);

Posted in SharePoint

One Response

  1. Logan

    Perfect, thanks for posting this.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.