Can I add a customer with 'accepts_marketing' option on a contact form?

a-ok
Shopify Partner
18 0 1

I wanted to add an option on a contact form `{% form 'contact' %}` to allow users to sign up to my newsletter (add as a customer with the 'accepts_marketing' option checked). I know you can do this with the customer form `{% form 'customer' %}` but that isn't a contact form.

Is it possible to add a customer with the 'accepts_marketing' option on a contact form?

Replies 3 (3)

gina-gregory
Shopify Expert
742 51 211

I don't think it's possible from the contact form, but you could maybe put both forms together on the page and use some javascript to control submitting both forms at the same time.

MoritzK
Visitor
2 0 0

Gina, have you seen any success in combining both forms? Or is there even a new solution to this problem? 

MoritzK
Visitor
2 0 0

Has there been any update on this?