How do I add a hyperlink to a trigger?

Have more questions? Submit a request

24 Comments

  • Emily Harris
    Comment actions Permalink

    This links you back to the ticket. How do I get the hyperlink to take me to an external source such as a website?

    0
  • Tiann Nelson-Luck
    Comment actions Permalink

    Hi Emily, 

    Thanks for reaching out! 

    Try something like the following to hyperlink to an external site in your trigger: 

    <a href="url">link text</a>

    Hope this helps! Have a great rest of your day! 

     

    0
  • Emily Harris
    Comment actions Permalink

    What would I put for the link text? Is that the same text as the URL?

    0
  • Tiann Nelson-Luck
    Comment actions Permalink

    Hi Emily! 

    That would be the text you want hyperlinked! 

    i.e.

    <a href="www....com">here</a>

    That would display as, "For more information, please click here.", with that word "here" being the text that is hyperlinked. 

     

     

    0
  • Ben Rowland
    Comment actions Permalink

    How do you hyperlink using placeholders?  For example, will the following work or am I expecting too much?

    <a href="{{ticket.url}}">{{ticket.title}}</a> 

    0
  • Jessie Schutz
    Comment actions Permalink

    Hey Ben!

    I tested it and that works, but you'll need to replace {{ticket.url}} with {{ticket.link}}, which is the correct placeholder for the URL that goes right to the ticket.

    0
  • Boris Yurchenko
    Comment actions Permalink

    Any clue why this does not work for me? I get this if I apply it the suggested way:


    What is wrong?

    0
  • Jessie Schutz
    Comment actions Permalink

    Hi Boris!

    Just to clarify, is it rendering in the ticket that way after you submit it? Or is your screencap from before you submit the ticket?

    0
  • Frank Roberts
    Comment actions Permalink

    HTML code doesn't appear to work with CHAT triggers. The document https://support.zendesk.com/hc/en-us/articles/224594167-Where-can-I-use-Markdown-and-HTML-in-Zendesk-Support- lists triggers as a valid use of Triggers, but doesn't specific ticket triggers.

    0
  • Fiona
    Comment actions Permalink

    I tried using this method in a trigger. I wanted it to say 'visit our support center if you're having a fit issue' and have 'fit issue' be a hyperlink. Instead, the message doesn't display as soon as the '<' is there, so the test says '.. if you're having a' and then nothing at all. Any advice? 

    Thanks! 

    0
  • Nicole - Community Manager
    Comment actions Permalink

    Hi Admin,

    Are you trying to use this in the body of a notification on a ticket, or are you trying to use this in a Chat trigger?

    0
  • Fiona
    Comment actions Permalink

    Hi Nicole

    In body of a ticket notification, which is filled in when I select one of my macros. Thanks!


    Fiona

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hi Admin,

    Any chance you can provide us with the exact code you're using so we can take a look for you? Or possibly a screenshot of the trigger you've set up? Particularly the email body.

    Thanks!

    0
  • Fiona
    Comment actions Permalink

    Hi Brett

    I used the code provided in this article. Here's a screenshot (I replaced our company info with ** for this screenshot)

    Thanks!

    Fiona

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hi Fiona,

    It looks like you're missing the second quotation mark at the end of your URL. Can you try adding that and see if that resolves the issue?

    Let me know!

    0
  • Fiona
    Comment actions Permalink

    Thanks, Brett, for catching that! Now that I've corrected it, it's working! Thanks!

    Fiona

    0
  • Brett - Community Manager
    Comment actions Permalink

    Happy to help Fiona :)

    0
  • Zuul
    Comment actions Permalink

    Hello! I hope this helps :)

     

    0
  • Tiago Leal da Silva
    Comment actions Permalink

    How to add this link to chat trigger, provided code ( <a href="linkURL">text</a> )  doesn't work in app.

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hey Tiago,

    I double-checked on my end and it looks like hyperlinks will not work in Chat triggers at this time. You'll need to post the actual URL link in your trigger for the user to click on.

    Let me know if you have any other questions for me.

    Cheers!

    1
  • Tiago Leal da Silva
    Comment actions Permalink

    Thanks for the reply Brett!

    Try leaving only one URL but in apps (iOS and Android) the click does not work.

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hey Tiago,

    We just did some testing and it looks like if you're just pasting the URL it should show up as a clickable link in iOS or Android. Hyperlinks would not show up as a clickable link, however.

    Are you able to replicate this on a different device? Any chance you can provide a screenshot of what you see on your end from your mobile device?

    0
  • Tiago Leal da Silva
    Comment actions Permalink

    Follows the print of how it looks, even being a URL I can't click.

    It looks like a picture, I can't touch or copy the text

    Thank you again

    0
  • Brett - Community Manager
    Comment actions Permalink

    Thanks for the update Tiago!

    I'm going to bring this into a ticket so our Customer Advocacy team can dig into this further.

    You'll receive a follow-up email shortly stating your ticket has been created.

    Cheers!

    0

Please sign in to leave a comment.

Powered by Zendesk