The Following below admin setting required to add Date of Birth Field in Customer Registration Form in Magento 2.x Store.
Step [1] – Go STORES > Configuration, redirects Configuration section.
Step [2] – Left panel, choose CUSTOMERS > Customer Configuration.
Redirects to Right Panel form as Step 3
Step [3] – Once redirection on [Right Panel]
Step [4] – Once clicked / expanded, Name and Address Options [Right Panel]
From Name and Address Options [Right Panel]
Each field of Name and Address Options form described as below
[4.1] – Number of Lines in a Street Address : By default 3 Lines given
It can be change up to 4 Lines.
[4.2] – Show Prefix : There are three options given as follows:
No – By default selected
Optional
Required
as per store requirement select any of them
[4.3] – Prefix Dropdown Option : put prefix that Store Admin want to be included in the list, each prefix is separated by a semicolon. & put semicolon in the beginning for empty first option.
Leave empty for open text field.
[4.4] – Show Middle Name (initial) : By default No selected, as per store requirement select Yes
It is Optional
[4.5] – Show Suffix : There are three options given as follows
No – By default selected
Optional
Required
as per store requirement select any of them
[4.6] – Prefix Dropdown Option : put prefix that Store Admin want to be included in the list, each prefix is separated by a semicolon. & put semicolon in the beginning for empty first option.
Leave empty for open text field.
[4.7] – Show Date of Birth : There are three options given as follows
No – By default selected
Optional
Required
as per store requirement select any of them
[4.8] – Show Tax/VAT Number : There are three options given as follows
No – By default selected
Required
Optional
as per store requirement select any of them
[4.9] – Show Gender : There are three options given as follows
No – By default selected
Optional
Required
as per store requirement select any of them
[4.10] – Show Telephone : There are three options given as follows
No
Required -By default selected
Optional
as per store requirement select any of them
[4.11] – Show Company : There are three options given as follows
No
Optional -By default selected
Required
as per store requirement select any of them
[4.12] – Show Fax : There are three options given as follows
No – By default selected
selected
Required
as per store requirement select any of them
Step [5] – Finally click on Save Config Button & run CLI command Flush, changes will be reflected on Customer Registration Form
Changes Reflected on Customer Registration Form