SP.FieldUserValue.fromUser(userName) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Creates a new field user value with the specified user name.
var value = SP.FieldUserValue.fromUser(userName);
Parameters
userName
Type: String
The user name to which the value of the new field user is set.
Return Value
Type: SP.FieldUserValue
The new field user value with the specified user name.
Remarks
This method sets the value of the lookupId property to -1.