- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2016 01:39 AM
Hi guys how can we add the current user's name to the "How Can We Help?" message on the main SP page? Please refer to attached screenshot. Thanks - Regina
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2016 05:04 AM
For the newly cloned widget...
Just write the below line in the Server part:
data.user = gs.getUserName();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2016 05:05 AM
Wonderful, that worked! Thanks Ashish!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 12:18 PM
Hello Ashishgupta,
is it possible to dotwalk from this script?
data.user = gs.getUserName();
I need to the value of the "first_name" field from [sys_user] table.
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2018 12:38 PM
I actually figured it out...you can!
data.user = gs.getUser().getFirstName();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2020 10:19 AM
Hello Ashishgupta, I'm very new at ServiceNow. Could you please tell me step by step where do you go to add data.user = gs.getUserName();? Thank you so much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2016 03:04 AM
Have you created a Widget with your new code in it?
If you have then Open the Index Page in Designer and Remove the Out the Box HomePage Search widget with your new one.