Redirect - Complete
Ifra Saqlain, do you know how we can redirect a user to a specific Zendesk submission when they click on a specific form tile in the Help Center? We have multiple forms and I'm not able to get the following string to work for this. I saw a different post where a user asked about this that included you:
https://support.zendesk.com/hc/en-us/community/posts/5166884257946/comments/5394709016346
<script>
if (document.referrer.match('/requests/new') && (window.location.href.indexOf("/requests/new?ticket_id_form=#######") !== -1)) {
window.location.href = 'URL';
}
</script>
-
Hi Hannah Lucid,
You can try this code for your specific form:
<script>
if (window.location.href.indexOf("/requests/new?ticket_form_id=5361962484244") !== -1) {
window.location.href = 'https://www.google.com/';
}
</script>5361962484244 - This is my form ID you have your own form ID, copy that and replace it and then test.
If any confusion feel free to ask :)
Thanks
-
:o! That worked!!! Thank you so so much!
-
Great !
Por favor, entrar para comentar.
3 Comentários