How to add a gender selection in register form?

Highlighted
Explorer
167 2 8

Hi,

I was wondering how to add gender selection in my register form?

I've tried the following code:

<label for="gender" class="label--hidden">{{ 'customer.register.gender' | t }}</label>
    <input name="customer[note][gender]" type="radio" id="gender" value="male" placeholder="{{ 'customer.register.gender' | t }}"> Male
    <input  name="customer[note][gender]" type="radio" id="gender" value="female" placeholder="{{ 'customer.register.gender' | t }}"> Female<br><br><br>

This giving me this error:

Knipsel.PNG

 

Hope someone can help me!

Thanks in advance!

0 Likes