0

How to build a welcome webpart to show the current user name after welcome in sharepoint online

1 Answer 1

2

To build a welcome webpart, microsfot has a very well documented steps given here.

Here in step 7, they have declared some default properties to show on webpart. like description, test, etc.

Similarly, you can create one more property to show the display name of current user.

To get the details of current logged in user, check this question.

Also, in SharePoint online you can get the display name of current user using following code:

var currentUserName = _spPageContextInfo.userDisplayName;

Not the answer you're looking for? Browse other questions tagged or ask your own question.