I want to add " Welcome back {{user_name}}" on the New request page right below " Submit a request". is that possible?



  • Official comment
    Vladan Jovic
    Community Moderator

    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

  • Nicole Saunders
    Zendesk Community Team

    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. 

  • josed

    Thanks Nicole!

  • Nicole Saunders
    Zendesk Community Team

    You're welcome! 

    Thanks for jumping in with the code, Vladan. 

  • josed

    Thanks Vladan !  It worked perfectly..

  • Jennifer Rowe
    Zendesk Documentation Team

    And Josed, here's a tip to add the user's name to the Search box, if you're interested:

    Add welcome note in HC search box along with user name


Please sign in to leave a comment.

Powered by Zendesk