Re: How do you add birthday and mobile number field in Stilleto theme?

How do you add birthday and mobile number field in Stilleto theme?

Fed-Graphics
Tourist
8 0 1

Hi guys,

 

We are currently using the Stilleto theme on Shopify and we can't seem to find a solution to adding a birthday and mobile number field for the register page. If you can help, that would be fantastic.

 

Thank you.

 

Aaron

Replies 5 (5)
Fed-Graphics
Tourist
8 0 1

Hi Horlart,

 

Thank you for your response. No sorry that is not what I'm after. What I would like to have is a birthday field and mobile number field on the register customer page. Please see the image below as reference. It would be helpful if each field is required.

 

02-54-98138-13976.jpg

Fed-Graphics
Tourist
8 0 1

Hey Horlart,

 

I don't think this solves my problem. This code only adds a birthday label not a birthday field where customers can add in their birthday and mobile number which are required.

 

 

Fed-Graphics
Tourist
8 0 1

How do I make it so it is required and it shows and error if it isn't filled in?

Fed-Graphics
Tourist
8 0 1

Hi Horlaryt,

 

This is our store link. 

https://www.federation.co.nz/

 

I have managed to add the field but the required function does not work.

 

This is the current code I have:

 

fieldform.jpg

Brett_Helium
Shopify Partner
270 51 120

Hey @Fed-Graphics!


I believe to get the 'required' attribute working in your form code, you would need to make sure to remove the novalidate: 'novalidate'  attribute from the Liquid form:

Brett_Helium_0-1725572944480.png

 

Alternatively, if you or anyone else looking for this solution want to make a custom registration form without having to code it yourself, or a form where the data gets stored directly into Shopify's standard fields and metafields instead of just into the customer note, you could check out an app such as Helium Customer Fields.

Brett | Helium
Helium builds apps that thousands of merchants depend on:
- Customer Fields ✪✪✪✪✪ (350+ reviews)
- Meteor Mega Menu ✪✪✪✪✪ (280+ reviews)