Service Portal configuration

vidyajadhav
Tera Contributor

Currently I am working on Service Portal. Homepage Search text is by default "How can we help?" It should dynamically fetch user's name and populate "Hello Vidya! How can we help?" How to set this by HTML coding. Please suggest url if any video available

1 ACCEPTED SOLUTION

@vidyajadhav 

Glad to help.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@vidyajadhav 

check these links

Add welcome message to Service Portal with Name 

Service Portal add current user's name i.e. "Hi Joe, How Can We Help?" 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

It worked by following the below steps

 

Clone the Widget -- Homepage Search

 

and place the cloned widget on the Homepage (index)..

 

In the Server Script use :
data.firstName = gs.getUser().getFirstName();

 

In the Body Html template use

<div>Hi {{c.data.firstName}}, How can I help?</div>

 

Then add the widget to your page.

 

thank you for your help

@vidyajadhav 

Glad to help.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader