Display Current Login User Name in Sharepoint 2010 Using Sharepoint Designer 2010



Display the current login username in sharepoint control.We have only access to sharepoint designer. We dont have access to add serverside code.  So we decide to user "Welcome username" message. We used javascript to display the username. Please check the following code.


setPickerInputElement(1);
call this function, and pass the people & group No.if there is only one 
people & control use "1", if you have more than 1, give on which control the 
current username need to display.

Screen1:Paste the code as shown.

Screen 2:
With this approach, instead of people or group control, you can display the user name in textbox if required.

Comments

Popular posts from this blog

SharePoint: Group By on more than 2 columns in a view (SP 2010)

Configure Form Based Authentication (FBA) in SharePoint 2010

SharePoint 2010 Windows PowerShell Interview Questions