Adding phone to newsletter form

I am looking to add a phone number to my newsletter form.

It looks like using name=contact[phone] doesn’t save the phone. I verified on Network tab that the phone is submitted properly on contact[phone].

I also saw posts that suggest saving it on Notes. IMO it’s not an acceptable solution.

Can someone from Shopify’s dev team please take a look at this subject and find out why it’s not saving?

Code:

    <div class="fieldset" style="justify-content: normal;">
                ...
                {%- assign phone_label = 'customer.addresses.phone' | t -%}
                {%- render 'input',
                  type: 'text',
                  name: 'contact[note][phone]',
                  label: phone_label,
                  type: 'tel',
                  autocomplete: 'phone',
                  required: true
                -%}
              </div>

IMO, if notes works, it means that the issue is on Shopify’s backend not mapping correctly contact[phone].

Reference:
https://community.shopify.com/c/shopify-design/need-code-to-add-name-and-phone-number-field-to-shopify/td-p/2199751

https://community.shopify.com/c/technical-q-a/collect-phone-number-with-newsletter-signup/m-p/1395876

https://community.shopify.com/c/shopify-discussions/how-can-i-add-a-phone-number-to-a-newsletter-form/td-p/1334472

Solutions that doesn’t work:

  1. input type as tel instead of text

  2. Saving on notes

1 Like

@absolute_il , hi, have you found a solution?
Need the form, that takes user’s name, last name, email, phone, email subscription, SMS subscription. Can’t find how to capture the phone and SMS marketing.