Forum Discussion
tifanny034
Jul 15, 2022Copper Contributor
Add name of user in page
Hi, I am trying to add the users name like Hi Sylvian, How can I do this ? Thanks for your help!
MVCuser
Feb 13, 2024Brass Contributor
Hi ganeshsanap
Tried a few times with the code you provided but keep getting this error message
also, i do not see the Modern Script editor part anywhere, is that an old feature?
thank you
ganeshsanap
Feb 13, 2024MVP
Above code does not work with the SharePoint default embed web part. You have to use the custom Modern script web part developed using SPFx.
You can find the custom web part code at: Script editor web part for modern pages
You have to download the code and create package by following steps given at: Minimal Path to Awesome
Please consider giving a Like if my post helped you in any way.
- MVCuserFeb 13, 2024Brass ContributorOH, I see thank you.
So there is not an out of the box way to achieve this. Shame.
Thank you for the details and links- ganeshsanapFeb 13, 2024MVP
MVCuser Yes. You can only see the user name in site using SharePoint out of the box features at:
Please consider giving a Like if my post helped you in any way.
- ChamonixJun 29, 2024Copper ContributorIssue with this approach is:
1. It needs to be manually added to each page, right? We like to use it on all pages.
2. User has to go to web part to modify the style, font size, etc. Prefer to do it through a richtext editor.