Hello.
We are facing a problem with our custom back in stock sign u form. We are trying to make the opt-in checkbox required. Why? Because we are sending to profiles that subscribed and never subscribed since some of them are just subscribers and some of them just customers. So the 2 options we have is
- subscribe to back in stock with no promotional emails → Never subscribed - not in back in stock list
- subscribe to back in stock with promotional emails → Subscribed to email list
So if you unsubscribed and subscribe to back in stock, your status will change to never subscribed and you will start getting emails. We tried to think all options but there is always overlap (e.g. ok, exclude all subscribed to back in stock list from newsletters. But what if they were already receiving?). Imaging having this in complex segmentation.
So for now making the “receive promotional emails” check box required seems like the cleanest option. The script we used is this one. Any ideas on how to make the checkbox required?

<script src="https://a.klaviyo.com/media/js/onsite/onsite.js"></script><script>var klaviyo = klaviyo || [];klaviyo.init({account: '[ACCOUNT_ID]',platform: 'shopify',list: '[LIST_ID]',});klaviyo.enable('backinstock', {trigger: {product_page_text: "{{ 'general.klaviyo.product_page_text' | t }}",product_page_class: 'button w-full',product_page_text_align: 'center',product_page_margin: '0px',replace_anchor: true,},modal: {headline: '{product_name}',body_content: "{{ 'general.klaviyo.body_content' | t }}",email_field_label: "{{ 'general.klaviyo.email_field_label' | t }}",button_label: "{{ 'general.klaviyo.button_label' | t }}",subscription_success_label: "{{ 'general.klaviyo.subscription_success_label' | t }}",footer_content: '',additional_styles: "@import url('{{ 'klaviyo-bis-modal.css' | asset_url }}');",drop_background_color: '#000',background_color: '#fff',text_color: 'var(--text-color-default);',button_text_color: '#fff',button_background_color: 'rgb(78, 60, 50)',close_button_color: '#ccc',error_background_color: '#fcd6d7',error_text_color: '#C72E2F',success_background_color: '#d3efcd',success_text_color: '#1B9500',newsletter_subscribe_label: "{{ 'general.klaviyo.newsletter_subscribe_label' | t }}",},});</script>

