最近の検索
最近の検索はありません
Change redirect after form submission
回答済み
投稿日時:2022年11月28日
Because we can't use Zendesk forms without enabling the Help Center (which is not yet ready), I am trying to remove from our form all references/links to the Help Center. I've edited the theme code to remove the breadcrumbs and the logo hyperlink. I think all that is left to do is to stop the form from redirecting users back to the Help Center after they submit a request.
How can I change where users are directed after they submit a request?
0
17
17件のコメント
Max
Hello there,
Starting from Zach EDITx2, I've modified it a bit so that it works for multilanguage :
0
Zach
Pedro Rodrigues
I've implemented your script
However, whenever someone tries to submit a form without a mandatory field, it edits the url to no longer include the "new?ticket_form_id=[form_id]" and instead maintains the url subdomain.zendesk.com/hc/en-us/requests which then ignores the redirect logic of the script... Any ideas on a solution?
EDIT: The redirect is no longer happening. Instead submitting a form is going to:
EDITx2: I went in and stripped everything back and this seems to work perfectly (both when the form is filled out correctly & when a user misses a mandatory field)
0
Brittany Loy
Hi! This is working for me however it ignores the required fields of the form. Is there additional code that I can use?
0
Nicole Saunders
0
Zach
Has anyone set this up across multiple forms? I want to redirect users based on the specific form they fill out...
0
Amy Giella
Thank you, Pedro Rodrigues! Do you know why clicking on the company logo at the top left corner takes me to the redirect page?
That is, on all pages, clicking on the top left logo takes me to the Help Center home page (expected). But after I click "Submit a request", any clicks on the logo take me to the redirect page that should be reserved for fully submitted tickets (not expected). I would anticipate that no matter where I am in the form process, clicking on the company logo will take me back to the Help Center home page... not the redirect page that tells me I've successfully submitted a ticket (especially since I can do this without even selecting a form to fill out, let alone submit it).
0
Pedro Rodrigues
Hi Amy Giella, sorry for taking such a long time to reply! This worked for me:
That is, if one tries to submit the form without filling in the required fields, the redirect doesn't occur.
1
Ifra Saqlain
I have been doing it for an hour, applying ideas but couldn't get it done perfectly.
0
Nicole
Ifra Saqlain thank you so very much for trying! I didn't have luck either with trying to limit it to a single form.
0
Ifra Saqlain
Nicole, I tried for single form but couldn't get it.
0
サインインしてコメントを残してください。