Is there a way for a contact form to lead to another page?

Solved

Is there a way for a contact form to lead to another page?

jinuralite
Explorer
78 0 9

Can someone help me please?

 

I want to have a contact form that leads to another page when submitted. 

 

The point is to retrieve customer's information and once they enter their details, they have access to our free resources. 

 

The contact form built into Shopify is barely customizable...

Accepted Solution (1)
PageFly-Noah
Shopify Partner
1317 233 268

This is an accepted solution.

Please share with me the URL of the page contains that contact form, then i can adjust the code by add some condition and make it work only for that form.

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 3 (3)

PageFly-Noah
Shopify Partner
1317 233 268

Hi @jinuralite 

 

This is Noah from PageFly - Shopify Page Builder App

 

Please add this code to your contact-form.liquid below the {%- if form.posted_successfully? -%} to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: search for the contact-form.liquid and paste this code below this position like this screenshot

<script>
setTimeout(() => {
  window.location.href='https://www.google.com/'
  console.log('change 3000 if you want to change the delay time')
},3000)
</script>

 

PageFlyNoah_0-1695194650032.png

 

Hope this can help you solve the issue 

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

jinuralite
Explorer
78 0 9

Thanks for your response.

Will this be applied to all contact forms on the website? I want it for one specific contact form.

PageFly-Noah
Shopify Partner
1317 233 268

This is an accepted solution.

Please share with me the URL of the page contains that contact form, then i can adjust the code by add some condition and make it work only for that form.

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.