On Form Submission

On Form Submission

PrecipiceDan
Shopify Partner
7 0 2

I have a form that I have coded my self for contact information, such as name email occupation.
I want to know how I can save that information as a contact as well as send a notification with the contact details to a certain email address, Is this possible and what code or settings would I need to change to accomplish this?

Replies 10 (10)

namphan
Shopify Partner
1335 164 199

Hi @PrecipiceDan,

Are you using a contact form for it? 

If you use a contact form, it will automatically send an email to set mail if someone submits the form. Refer link

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com
PrecipiceDan
Shopify Partner
7 0 2

I did use {% Form 'contact' %} I'm assuming that is what you are referring to?
I've noticed there is also an alternative tag {% form 'create_customer' %}
What are the differences, because I've read through it and it looks very similar to me

 

namphan
Shopify Partner
1335 164 199

Hi @PrecipiceDan,

The contact form helps you receive email when customers submit it, it will include the information you want from customers.

With the create_customer form, it will help you create customers for the store.

Hope it is clear to you.

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com
PrecipiceDan
Shopify Partner
7 0 2

So If I'm wanting my form to subscribe someone to my contact list, would that than be contact,
I also wanted to ask about the action, without a form action it just redirects me to a 404 page whereas I want it to keep me on that page but save the contact details?

namphan
Shopify Partner
1335 164 199

Hi @PrecipiceDan,

I don't really understand it, can you explain more?

Regarding saving information, when you submit the contact form, it will only send you an email, but if you want to save more, you can refer to the customer newsletter form. 

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com
PrecipiceDan
Shopify Partner
7 0 2

Of course, So this form I have created is meant to subscribe to benefits, so it is needing to both grab contact details, such as name email and occupation. then it has an option subscribe someone to newsletters and all that, But within the form code there is an Action attribute, which is what is used to process that form's data, but my only concern is that the form gets captured correctly ;-;

namphan
Shopify Partner
1335 164 199

Hi @PrecipiceDan,

With shopify theme you can only manage this through mail and customer, it won't be really good. With your requirements, I recommend you to install Marketing apps: Klaviyo, Yotpo, ... It will help you manage everything most effectively.

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com
PrecipiceDan
Shopify Partner
7 0 2

Thanks so much, I will give it a go

 

namphan
Shopify Partner
1335 164 199

Hi @PrecipiceDan,

If you have any questions, you can contact me directly.
Happy to help you 😊

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com
PrecipiceDan
Shopify Partner
7 0 2

Will do thanks so much @namphan !