People selection property AllowEmpty

I am using a SharePoint user user control on my aspx page. I set the AllowEmpty property of people selection control to false.

But still, the required field check for the control is not required. I do not want to explicitly use the necessary field check control to verify this. Any ideas?

Regards, Raghuraman.V

+5
source share
1 answer

To enable / disable validation for Entity Editor (e.g. People Editor ), the following properties must be specified in combination:

, , , ValidatorEnabled="true" :

<wssawc:PeopleEditor
                                      AllowEmpty="false"
                                      ValidatorEnabled="true"
                                      id="userPicker"
                                      runat="server"
                                      SelectionSet="User,SecGroup"
                                      />
+1

All Articles