conditional submit button for newsletter in footer

Topic summary

Goal: Route newsletter footer sign‑ups to different ActiveCampaign contact lists based on storefront language (e.g., example.com/de → German list).

Recent updates: A helper asked for the store URL; the requester provided a preview URL and specific ActiveCampaign list links for German (listid=15), English (listid=21), and French (listid=22).

Current implementation: Shared Liquid/HTML shows two form paths—Shopify contact form (contact[email] with hidden tags) and a Mailchimp fallback (EMAIL with block.settings.form_action). No ActiveCampaign integration or language-based conditional routing is present.

Technical context: ActiveCampaign “lists” are separate subscriber groups; Shopify Liquid can detect locale and render conditional markup; differing input names/actions mean the current setup targets Shopify/Mailchimp, not ActiveCampaign.

Open questions: How to detect the current language and switch form action or API endpoint to the corresponding ActiveCampaign list. Whether to use Liquid conditions per locale (de/en/fr) or JavaScript to modify the form action dynamically.

Status: No resolution yet. Next steps likely involve implementing language-based conditionals and integrating directly with ActiveCampaign (form action or API) for each list.

Summarized with AI on February 13. AI used: gpt-5.

I have added a newsletter in footer with signup button. I need when users select german language like example.com/de his subscribtion and details are send to activecampaign contact list with I created for German language users. I also have those contact lists links. Please help anyone I am searching and trying from many days but failed. @KetanKumar @WoodyDev @LitCommerce @made4Uo

1 Like

@msfunzoo

can you please send store url

1 Like

https://kerstin-802a.myshopify.com/

The list for GERMAN

activehosted.com/app/contacts/?listid=15&status=1

The List for English

activehosted.com/app/contacts/?listid=21&status=1

The List for French

activehosted.com/app/contacts/?listid=22&status=1

I need to send every language user to these contact lists

This is the submit button for newsletter signup




{{ ‘general.mailchimp_form.submit’ | t }}

{%- endform -%} {%- else -%}
{{ 'general.mailchimp_form.submit' | t }}
{%- endunless -%}