Add gender field to registration form - Dawn

Hi,

I have added a gender field to the Customer/register liquid template:

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

However, the text “Gender” does not go smaller and at the top right of the field when an option is selected (cf picture #2). What part of code should I modify to harmonize the gender field with the other fields ?

Thank you very much for your help !

Picture #1:

Picture #2

Hi @totorsjp ,

With select, it will be impossible so you need to remove the label and display the select directly.

Refer code:


  

Hope it helps!