[meta] Simplify complex form elements where possible

Created on 15 June 2012, over 12 years ago
Updated 29 May 2023, over 1 year ago

Got to talking about fieldsets & complex related fields in the A11ySprint. One of the best ways to deal with complex groups of fields is to consolidate them. So, say phone numbers are often done with 3 separate input fields.

Noticed today another set of input forms that should be joined by a fieldset. The Maximum image resolution description has a Maximum width & Maximum height input for the pixels. This either needs a fieldset or could simply be reduced to a single input form.

There are other examples like this where validation and structure should be done on the server side, but not with separate input fields. If we need to resort to different input fields we need to have fieldsets for them.

🌱 Plan
Status

Postponed

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated 6 days ago

Created by

πŸ‡¨πŸ‡¦Canada mgifford Ottawa, Ontario

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada mgifford Ottawa, Ontario

    @Chi not everything needs to be hard coded into two separate inputs.

    A phone number could be 3 separate fields, or just one:
    (555) 555 1212

    It is becoming much more common with credit cards too. They used to be 4 or more separate values, but now are just one (with JS & CSS to make them look like more than one).

    The height/width fields could be just one, where they are separated by an "x".

    JavaScript could interpret a space, comma or "x" as the separator between the height & width.

  • πŸ‡·πŸ‡ΊRussia Chi

    Got it.
    For numeric values I think it is better to use multiple number inputs wrapped into fieldset instead of a single text input.

  • Status changed to Postponed over 1 year ago
  • πŸ‡¨πŸ‡¦Canada mgifford Ottawa, Ontario

    I think we need user testing before moving ahead on this, so tagging Usability.

    I'm marking it postponed as ultimately we need to do user research on this to determine if this is a good pattern or not.

Production build 0.71.5 2024