Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

client people picker fetching display name like this "Dejavu1 (Project Coordinator)", i want on only name

$
0
0

I am using client people picket to get name from LDAP

its fetching name like this

Dejavu1 (Project Coordinator)

Dejavu2 (Project manager)

Requirement:

I want only name like Dejavu1,Dejavu2, not designation which is attached with it

Is there any way to get/fetch name only I am using  below code.

 var RequestedForpeoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.RequestedFor_TopSpan;

 var RequestedForu = RequestedForpeoplePicker.GetAllUserInfo();

   var username = RequestedForu[0].DisplayText;

Need help

thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>