I want to add " Welcome back {{user_name}}" on the New request page right below " Submit a request". is that possible?
Answered-
Official comment
Hi Josed, maybe this code will help.
if(HelpCenter.user.role!='anonymous') {
$('.form').before('<h2>Welcome back '+HelpCenter.user.name+ '</h2>');
}You should add it on JS tab after this row:
$(document).ready(function() {
Please let us know the result. Thanks
-
Hey, Josed! Welcome to the Zendesk Community.
The customization you're asking about is something that you can do via the JavaScript code. I'm no JavaScript expert, but I'll ping a few folks and hopefully one of our mods or someone from the community can help you figure out what that code would look like.
-
Thanks Nicole!
-
You're welcome!
Thanks for jumping in with the code, Vladan.
-
Thanks Vladan ! It worked perfectly..
-
And Josed, here's a tip to add the user's name to the Search box, if you're interested:
Please sign in to leave a comment.
6 Comments