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

Answered

6 Comments

  • 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

  • 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

    2
  • Nicole S.
    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. 

    0
  • josed

    Thanks Nicole!

    0
  • Nicole S.
    Zendesk Community Team

    You're welcome! 

    Thanks for jumping in with the code, Vladan. 

    0
  • josed

    Thanks Vladan !  It worked perfectly..

    0

Please sign in to leave a comment.

Powered by Zendesk