core icon indicating copy to clipboard operation
core copied to clipboard

Change input type of gender to radio buttons

Open marcobiedermann opened this issue 9 years ago • 15 comments

I recommend to change the input type of the gender field from select-box to radio buttons for better UX. Only use select-box for eight or more options. When it comes to mobile accessibility it is more user friendly to use radio buttons.

contao-gender

contao-gender-ios

marcobiedermann avatar Aug 23 '14 13:08 marcobiedermann

+1

aschempp avatar Aug 23 '14 14:08 aschempp

Why is this better?

leofeyer avatar May 04 '15 08:05 leofeyer

http://baymard.com/blog/drop-down-usability

aschempp avatar May 04 '15 08:05 aschempp

:+1:

lionel-m avatar May 04 '15 08:05 lionel-m

When drop-down lists have less than 7 options they suffer from a lack of up-front information. The user has to click in order to see the available options. In these cases you are better off using radio buttons so your users immediately can scan how many options they have and what each of those options are

marcobiedermann avatar May 04 '15 08:05 marcobiedermann

This looks odd in the back end. Also, how do you allow the user to reset their selection?

leofeyer avatar May 05 '15 13:05 leofeyer

Set three options:

  • not specified
  • male
  • female

marcobiedermann avatar May 05 '15 13:05 marcobiedermann

I think if you have a select which mostly gets no selection it's better to have a select with the blank option first. Else with radios I see a lot of information that I don't need.

Example: I see the label "gender" with blank option in a select, thats enough as I don't want to make a selection here. With radios I will see three radios with three labels and have to check which one is activated and have to check all labels.

Just another point of view.

Aybee avatar May 05 '15 19:05 Aybee

We have discussed this issue on Mumble on May 21st and the majority of participants voted against changing the field type. Apparently, some need more than "male" and "female":

  • Asexual
  • Female to male trans man
  • Female to male transgender man
  • Female to male transsexual man
  • F2M
  • Gender neutral
  • Hermaphrodite
  • Intersex man
  • Intersex person
  • Intersex woman
  • Male to female trans woman
  • Male to female transgender woman
  • Male to female transsexual woman
  • Man
  • M2F
  • Polygender
  • T* man
  • T* woman
  • Two* person
  • Two-spirit person
  • Woman

:)

Is this not something that you can change in the template?

leofeyer avatar May 21 '15 13:05 leofeyer

Yes, it can be changed in the form_select.html5 template. Just count the options and if there are less than 5, output radio buttons instead of a select menu.

leofeyer avatar May 21 '15 13:05 leofeyer

I disagree. If I add new options to the tl_member dca, I can change the inputType. But the default has only 2 options, so radio is appropriate.

aschempp avatar May 21 '15 13:05 aschempp

You can adjust the template to change the markup subject on the number of options :)

leofeyer avatar May 21 '15 14:05 leofeyer

@leofeyer Hmm, yeah you can always change the templates but this should be the default in most cases.

marcobiedermann avatar May 21 '15 14:05 marcobiedermann

Since we are living in a continuum of genders: May I suggest a continuous slider instead?

kikmedia avatar May 21 '15 19:05 kikmedia

@aschempp ... But the default has only 2 options, so radio is appropriate.

With only 2 radio options you can not reset it to unspecified. So I think 2 radio options is not appropriate.

Aybee avatar May 22 '15 14:05 Aybee