Multiple tags from footer newsletter signup

Hi, is it possible to add multiple tags to a customer when they sign up to the newsletter? i.e. the below:

{%- form ‘customer’, id: ‘FooterNewsletter’ -%}
{%- if form.posted_successfully? -%}

{{ 'general.newsletter_form.newsletter_success' | t }}
{%- elsif form.errors -%} {{ form.errors | default_errors }} {%- endif -%}
{{ 'general.accessibility.subscribe_to_newsletter' | t }}
{%- endform -%}

I’ve tested and it seems like it just takes the first rather than any subsequent - but just wanted to check on here.

Thanks

Hi @dagansmith1 ,

If you want to use 2 tags, you can’t declare 2 contact[tags]. Please change the code: https://i.imgur.com/oV68yVf.png

Code:


Hope it helps!

1 Like

Thanks, that’s worked perfectly!

1 Like

Hi Litextension, what about if i want to add the value of a text field input as a tag ? instead of the “newsletterfooter” ?

Thanks a lot for all your insights across the community. Such a gem

Hi @Alexandremoine ,

You can create a question on the community and send me the link. I will check it.
Because this will help build a better community.
Thank you.

1 Like

Okay, done !

https://community.shopify.com/c/shopify-discussions/multiple-tags-from-text-field-input/m-p/1646191#M302194