Question
When a user submits a new request, a confirmation message appears at the top of the page that says Your request was successfully submitted.
Can I edit the confirmation message that appears after a user submits a new request?
Answer
No. It is not possible to edit the confirmation message that appears after a user submits a new request.
One possible workaround is to redirect the user to a different page after they have submitted a new request. This page lets them know that their submission was successful.
You can create a new article page that is used to redirect users to your custom confirmation message. You will also want to hide the article from any sections so users cannot access the article from your Help Center. Additionally, you'll want to style that article so that it doesn't look like an article and looks more like a confirmation landing page.
To set up a redirect, you add some Javascript to your document_head.hbs file that redirects users to your custom article. For example:
<script type="text/javascript">
if ( window.location.href === "https://help.yourcompanyname.com/hc/en-us?return_to=%2Fhc%2Frequests"){
window.location.href = "https://help.yourcompanyname.co.uk/hc/en-us/articles/36345615515-Submission-successful";
}
</script>
For more information on how to make customizations to your Help Center, see the article: Customizing your Help Center theme.
3 Comments
Hi - I was playing around with this in our Sandbox environment, and the redirect made it so a ticket wasn't actually created when I tried your solution. Is it possible I'm doing something incorrectly or forgetting something?
Hi Crawford,
I'm sorry that you're running into this!
1. Could you verify that the code was added specifically to the document_head.hbs file?
2. Would you be able to paste the exact code you used here so I can take a quick look at it?
Thanks!
Hey there! I think I had some URL issues that I was able to resolve on my own. Thanks for the response!
Please sign in to leave a comment.