- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2022 10:46 PM
Hi All,
When a non admin user is logged into the service portal, it is showing 'Hi Undefined' . Actually it has to show 'Hi (user's first name)'. There is no change in html code and client side code in widget. We have recently installed HRSD plugin. Please let us know if anyone experienced this issue before.
Regards,
Devika.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2023 10:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2022 10:49 PM
Which widget are you referring to? Is it some OOB widget or custom widget?
Also can you check if that particular user has first_name populated in user profile?
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2022 10:59 PM
Hi Raghav,
We are using a custom widget with the following client controller script:
function() {
/* widget controller */
var c = this;
c.data.greeting = 'Hi ' + scope.user.first_name + ', Welcome to the Bristow ServiceDesk';
}
And the first name is populated in user table and is coming for admin users.
Regsrds,
Devika.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2022 11:15 PM
Can you also paste the HTML part and server code as well.
If there is no server code there is no need to use c.data.greeting , use c. greeting and directly call it in HTML like {{c.greeting}}
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2022 11:46 PM
The same code we are using in our production instance. And also if it is the issue with the code, the problem will occur for the admin users also, the issue is only to the non admin users.