How to make Shopify catch full name and phone number fields from newsletter subscription form

I have a form that looks like this:

{% form 'customer' %}
      
        
        
        
        

          
        

        
      

      {% endform %}

How can I capture the fullname and the phone_number attributes from the front-end? I noticed in the backend it’s First Name and Last Name, is there any way I can pass it fully without having to use javascript to turn the Full Name field into chunks? Because some people have more than 2 words in their full name and it’s gonna be problematic.

Hello , @cedrichadjian

You can get full name by using {{customer.name}}

& phone number by using {{customer.phone}}

Hi thanks for your reply, wouldn’t that get the customer’s name and phone number? I want to pass these fields as input attributes so when someone submits, we capture them.