XF 1.4 Double Gender Fields in Registration

clove28

Active member
There are 2 gender fields in my registration form. I don't know why but how can I remove the other one? Please see the image..

2 gender.webp
 
The latter one of those looks like a custom field. You'd have to remove that or edit the register_form template to hide the default one.
 
The bit related to the gender.

HTML:
    <dl class="ctrlUnit">
        <dt>{xen:phrase gender}:</dt>
        <dd>
            <ul>
                <li><label><input type="radio" name="{$fieldMap.gender}" value="male" {xen:checked "{$fields.gender} == 'male'"} /> {xen:phrase male}</label></li>
                <li><label><input type="radio" name="{$fieldMap.gender}" value="female" {xen:checked "{$fields.gender} == 'female'"} /> {xen:phrase female}</label></li>
                <li><label><input type="radio" name="{$fieldMap.gender}" value="" {xen:checked "!{$fields.gender}"} /> ({xen:phrase unspecified})</label></li>
            </ul>
        </dd>
    </dl>

Remove that.
 
I actually suggest not using an add-on for this.

The default gender field only appears in three locations in the front end of XF.

It appears in the back end, too, but removing those is superfluous if it cannot be manipulated in the front end.
 
I actually suggest not using an add-on for this.

The default gender field only appears in three locations in the front end of XF.

It appears in the back end, too, but removing those is superfluous if it cannot be manipulated in the front end.

But if I use the one Brogan suggested, will it also affect the other locations?
 
Removing it from that template will only stop it showing in the register form.

If you want to remove it from other templates/pages, you will need to edit those also.
 
Back
Top Bottom