Shopify themes, liquid, logos, and UX
Good day!
Please assist me. On my "Contact Us" page I have a Contact Form. Upon Successful completion I want the page to redirect to a "Thank You" page. I manually created this page and it basically just says Thanks for filling out the form successfully, but I need the URL for tracking purposes.
I don't know where to paste the code. I am not an HTML expert. What I have, but it is not working is:
window . location = " and then the instruction to open the page";
Where can I paste this code or edit the instruction that once the form has been filled in successfully, I want an instruction to open my custom Thank You page.
Please assist me, thank you!
Hi @CarlinWentzel1
You have to use jquery code once form submit.
You have to detect form is submitted or having error using js then you can add that redirect code.
Hi!
Thank you. You don't perhaps have a code snippet I can insert to instruct the page to open Please?
@CarlinWentzel1
Sorry currently I haven't the code snippet, need to create new one for this according to theme, It will take time.
Hi
Thanks, I Understand. Is there any way I can ask someone at Shopify to send me a quote how much it will cost to create this for me? I need it, and I am willing to pay. Not sure what route to go? I know very few coders who wants to work in Shopify here where I live.
in the contact-form.liquid file, search for this line
{%- if form.posted_successfully? -%}
and below it paste this line and insert the url of your page
<script>window.location = "https://www.learningaboutelectronics.com/images/Arduino-LED-flasher-circuit.png"; </script>.
This will do the trick
Thank you this worked perfectly for me!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025