Tag Info

New answers tagged

0

I thought I would share the solution with everyone. As long as you know the users account name (Active Directory login name in this case) and there is a two way trust between the forests you can use 'Check Names' to resolve directly. This power user was delighted knowing the trick. Saved him emailing the document from the intranet. Ob course for the admins ...


0

Please see "Events" here: There’s few events available in the people picker control as described below. All of these events will get two parameters – first one is the people picker id and second parameter is an array of selected users. On Control Value Changed This event will be fired if anything changes, like if user type text, user select a user from ...


0

The function "RemoveCssClassFromElement" is defined in core.js file. Just add reference to it in html markup. <script type="text/javascript" src="/_layouts/15/core.js"></script>


0

You need to use the "SPClientPeoplePicker" JS object, which according to this MSDN article you should find in the following SharePoint 2013 JavaScript libraries: clientforms.js clientpeoplepicker.js autofill.js Here's my solution for you: var PickerTitle = "Assigned To"; var currUser = $().SPServices.SPGetCurrentUser({ fieldName: "Title" }); ...


0

Turns out that I used the wrong version of the gacutil tool to register my provider. The provider version is .net 4, while i used a .net 4.5 version of the gacutil tool to register it with. As a result, the provider was placed within the wrong gac_util folder and my SharePoint could not find it.


2

This Code perfectly works on SharePoint 2013. References To be added: <SharePoint:ScriptLink name="clientforms.js" runat="server" LoadAfterUI="true" Localizable="false"/> <SharePoint:ScriptLink name="clientpeoplepicker.js" runat="server" LoadAfterUI="true" Localizable="false"/> <SharePoint:ScriptLink name="autofill.js" runat="server" ...


0

Please include following code: // Query the picker for user information. function getUserInfo() { // Get the people picker object from the page. var peoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv_TopSpan; // Get information about all users. var users = peoplePicker.GetAllUserInfo(); // Get the first user's ID by using ...


1

If suitable in your case, reference some javascript on the newForm (for example by making a custom newform.aspx). You could get the current logged in user by combining information from _spPageContextInfo with a REST query. E.g. var userid = _spPageContextInfo.userId; var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ...


3

You can get the current user using SPServices like described in the following documentation: http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices.SPGetCurrentUser You should specifiy the name property, so you do something like this: var user = $().SPServices.SPGetCurrentUser({ fieldName: "Name", debug: false }); After getting the ...


0

You can use jQuery selectors to do this. You need to locate the people picker using selectors and pass the values or get the values. For example, My people picker control is placed inside a <td> with id "peoplePicker" then I could use the following code to locate and get or set values get values var ...


0

You can use SPServices to interact with people picker $().SPServices.SPFindPeoplePicker({ peoplePickerDisplayName: "", valueToSet: "", checkNames: true }); Reference: http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPFindPeoplePicker


1

Since you have a one way trust you need to use username and password as shown below: "Specify user account and password from a one way trust To specify the user name and password from a one-way trust, so that People Picker can look up this information, use the following syntax: stsadm -o setproperty -url http://<server:port> -pn ...



Top 50 recent answers are included