Tag Info

New answers tagged

0

Declare your field in markup as this: <SharePoint:UserField ID="UfEmployee" runat="server" FieldName="Employee"/> To Disable use this code in OnPrerender: var ppe = (PeopleEditor)UfEmployee.TemplateContainer.FindControl("UserField"); ppe.Enabled = false;


1

You can save User data as below string[] userarray = a.CommaSeparatedAccounts.ToString().Split(',');; SPFieldUserValueCollection usercollection = new SPFieldUserValueCollection(); for (int i = 0; i < userarray.Length; i++) { SPFieldUserValue usertoadd = ConvertLoginAccount(userarray[i]); usercollection.Add(usertoadd); } ...


0

I used the info from the same cited above https://msdn.microsoft.com/en-us/library/office/jj713593.aspx to get the full list of User info for the person in our 2013 farm. I was interested in just grabbing one name from the picker so I set schema['AllowMultipleValues'] = false; the reference article uses a function to get the UserID function ...


0

I don't think you can fix this issue in SharePoint side. The best option is to create some script in Excel to remove this. http://stackoverflow.com/questions/5023686/cleaning-people-group-data-exported-from-sharepoint-2010-lists


0

easiest way is to create a column and set it as person/group and choose show name(with presence) option. Now just create a workflow to set created by field(or whoever who want to display full name) name to above created new name column


0

Try this link. I think there is some workaround to solve this issue.


1

You can create Site Columns that have these properties: Person or Group and Metadata Keyword where users are allowed add keywords that doesn't exist. These site columns can be added to a Content Type which may be a Docement or a Page or anything else. Navigate to Site Settings and find the links you need in the group Web Design Galleries.


0

I would revise it like this, where pectrl is the PeopleEditor. Note: This assumes you add a MultiSelect="false" attribute on your PeopleEditor, though theoretically you should be able to use a loop like in Sean's example to get them all, but you would need to return a collection, not just SPUser or SPFieldUserValue to do that: public static SPUser ...



Top 50 recent answers are included