Create a dynamic url to a ticket in a category
AnsweredIn my Zendesk theme I have three areas called "Administrator", "Instructor" and "Test Taker"
In each area they take the user to a different area (I think this is called a Category). What I want it to do is to take me directly to a specific ticket to fill out (if it's Administrator, then it'd go to the administrator section to fill out an administrator ticket... Instructor would be for instructor only).
When I go to customize the theme, in the Home page I have
<button onlick="#" class="button-section"><a href='{{url}}' class="blocks-item-link">CONTACT SUPPORT</a></button>
Which takes you to the said section, what I'd want is the {{url}} to take you to said link such as [MYURL]...en-us/requests/new?ticket_form_id=672607
And one for each of the other two. I'm not sure how to code that correctly, can anyone help me out?
-
Hey, Scott! Welcome to the Zendesk Community!
I don't have an answer for you off the top of my head, but I'll do some digging. We also have some super helpful community members and moderators who will hopefully jump in and help you out. -
Hi @Scott Thigpin,
I think you don't want to list category blocks instead, you want to list blocks which will redirect you to the associated ticket forms. If so, you can use following code -
Replace the ticket form id with your ticket form id.
Let me know if you face any issue.
Cheers
Team Diziana
-
thank you this worked!
-
Thanks, as always, Team Diziana!
That's a cool tip.
Glad it worked for you, Scott!
Post is closed for comments.
4 Comments