How to correctly add a DOB field to sign up form?

Hi, I used the shopify forum to add a DOB field to my store sign up form. I followed the instructions but the field has come out different to my form.

Please can you advise where in the coding to change this to match? I also want it to be visible as DD/MM/YYYY.

I have tried to attach a screenshot but it won’t allow me to. Please see the link below;

https://healingandher.com/account/register

1 Like

Hello @HEALINGANDHER ,

Greetings!!

I have found an article for you I hope it will help you and solve our issue

https://support.yotpo.com/en/article/collecting-customer-birthday-date-from-shopify

If it is helpful then please like and accept it as a solution!

@HEALINGANDHER

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share share code this page ,
I will check out the issue and provide you a solution here.

Hi,

I believe this is what I used. However as you can see on my link on the
initial question, it hasn’t come out the same :disappointed_face:

Hi,

I cannot remember where the code was entered. I will have to have a look my
end. However it was found on the shopify forum, and I followed the
instructions as advised to enter the DOB into the sign up form.

Would you like access to my store to have a look?

1 Like

@HEALINGANDHER

can you please send register page code

{{ ‘customer.register.title’ | t }}

{% form ‘create_customer’ %}
{{ form.errors | default_errors }}

{{ ‘customer.register.first_name’ | t }}

{{ ‘customer.register.last_name’ | t }}

{{ ‘customer.register.email’ | t }}

{{ ‘customer.register.password’ | t }}

Birthday

{{ ‘customer.register.cancel’ | t }}

{% endform %}

1 Like

@HEALINGANDHER

thanks but its not proper code

Can you please advise the correct code for the theme Dawn?

1 Like

@HEALINGANDHER

yes, please give full code this page so i will guide you

Are you able to request access?

{{ ‘customer.css’ | asset_url | stylesheet_tag }}

{{ 'customer.register.title' | t }}

{%- form 'create_customer', novalidate: 'novalidate' -%} {%- if form.errors -%}

{{ 'templates.contact.form.error_heading' | t }}

{%- endif -%}
{{ 'customer.register.first_name' | t }}
{{ 'customer.register.last_name' | t }}
{{ 'customer.register.email' | t }}
{%- if form.errors contains 'email' -%} {{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }}. {%- endif -%}
{{ 'customer.register.password' | t }}
{%- if form.errors contains 'password' -%} {{ form.errors.translated_fields['password'] | capitalize }} {{ form.errors.messages['password'] }}. {%- endif -%} {{ 'customer.register.submit' | t }} {%- endform -%}

I replied above!

1 Like

@HEALINGANDHER

yes, please give me theme access

Please request it :slightly_smiling_face:

Hi, you still haven’t requested access to complete this?