Redirecting end users to other url upon ticket submission

5 Comments

  • Nicole - Community Manager
    Comment actions Permalink

    Thanks for the context and detail in your question, Edward! I'm no code expert myself, but we'll ping a few folks and see if we can get someone in here who can help you out. 

    0
  • Nicole - Community Manager
    Comment actions Permalink

    Hey Edward - 

    Update for you: one of our mods is looking into this code for you. He's got a few deadlines looming so it might take a couple of days for him to get back to you, but we've got you covered. :) 

    0
  • Edward Voisin
    Comment actions Permalink

    You guys are the best!

    0
  • Wes Drury
    Comment actions Permalink

    @Edward - I took a very quick look and I don't believe we are going to be able to redirect after the submit occurs however we may be able to get the redirect to occur after it takes you to the ticket page.  I didn't have time to really dig into the details but I believe that is where you need to look.  Hopefully, I will have more time in the next few days.  

    How long are the instructions as you may be able to show the instructions directly on the ticket page.  You could hide HTML on the ticket page then show that HTML based on data on that ticket page.  There are a couple of options to think about and play around with.

    0
  • Martin Gibson
    Comment actions Permalink

    The problem with your code is that it fires immediately when the submit button is pressed not allowing enough time for the PHP functions to properly execute. 

    I don't know a good solution but you can write javascript code similar to what you have done which triggers on the home page and looks for the "return_to" parameter in the URL. As this parameter is present after a form is submitted. You would also need to use the javascript function document.referrer to check what the previous URL is if you want to only trigger the redirect on a particular form.

    The problem with this solution is that it means the Zendesk home page may briefly appear before the redirect is enacted.  

    0

Post is closed for comments.

Powered by Zendesk