How to make first name and last name fields mandatory in dawn theme

How can I make the first name and last name fields mandatory in account register page in dawn theme?

Only email and password is mandatory by default and users can create an account without first name and last name.

Highly appreciate any help! Thanks!

Hi @Haree

1: Online store > themes > Actions > Edit code > Templates > customers/register.liquid

2: find

{%- form 'create_customer', novalidate: 'novalidate' -%}

replace with this

{%- form 'create_customer' -%}

3: add required to first name and last name

Thank you for your answer but I can’t seems to find customers/register.liquid theres only customers/register.json and there is no {%- form ‘create_customer’, novalidate: ‘novalidate’ -%} in there.

It worked! Thank you so much! I just found the line{%- form ‘create_customer’, novalidate: ‘novalidate’ -%} in main-register.liquid in Templates.