How to use shopify's form button submission info for custom contact form?

Hello, I have built a custom contact form. How can I implement Shopify’s default contact form submission into my custom contact form button?

This is the custom contact form submit:

I have tried replacing with Shopifys code into the button and did not work

{{ 'templates.contact.form.send' | t }}

Any suggestions?

Thanks!

Hello @xnyjyh ,

But why are you replacing? can you exaplain please.

Because I have a custom link modal popup on the product page and can’t use a section within a section. Plus new one is nice and more options for user.

Hello,

why you not use this app this is shopify free app https://apps.shopify.com/shopify-forms

It’s not what I want. I’ve already worked on mine and need it customized the way I have it now. Just need to implement shopifys send code.

You want create your own, If you want to save data to shopfiy you must create shopify custom app using shopify mutation, or if you want to send the your form field third party so using javascript form submit.