We are currently using Klaviyo with Shopify and noticed that in certain constellations, embedded forms fail to load. This is mostly related due to consent manager restrictions.
Now we want to define a fallback that is displayed if the Klaviyo form fails. Is there a way to achieve this?
This would be an example code:
<div class="klaviyo-form-XXXXX">
<div class="hide-on-success">
<form method="POST" action="//manage.kmail-lists.com/subscriptions/subscribe" id="email_signup">
<input value="XXXXX" name="g" type="hidden">
<input placeholder="Your email" id="k_id_email" name="email" value="" type="email">
<button type="submit">Subscribe</button>
</form>
</div>
</div>
The idea is, that initially the static form is shown. Then, after Klaviyo loads, it hides the “.hide-on-success” area and displays the embedded code instead. Is this possible? Does Klaviyo have any mechanisms for this, like my hypothetical “hide-on-success”?