Page MenuHomePhabricator

Define the behavior of our Required/Optional form fields
Closed, DuplicatePublic

Assigned To
Authored By
bmartinezcalvo
Apr 19 2022, 9:36 AM
Referenced Files
F35096202: Captura de pantalla 2022-05-03 a las 13.59.21.png
May 3 2022, 11:59 AM
F35096172: Captura de pantalla 2022-05-03 a las 13.53.57.png
May 3 2022, 11:58 AM
F35096194: Captura de pantalla 2022-05-03 a las 13.57.50.png
May 3 2022, 11:58 AM
F35095940: Options.png
May 3 2022, 11:31 AM
F35096064: Final proposal.png
May 3 2022, 11:31 AM
F35096037: Required vs. Optional.png
May 3 2022, 11:31 AM
F35058544: image.png
Apr 19 2022, 6:03 PM
F35057967: Captura de pantalla 2022-04-19 a las 11.25.08.png
Apr 19 2022, 9:36 AM

Description

Background/Goal

We need to unify our form fields since currently we are using different solutions to indicate our required form fields:

  • Sometimes we use the required asterisk as an end icon in the text inputs. This solution is not scalable to all our form fields since we can't use it with selectors.

Captura de pantalla 2022-04-19 a las 11.25.13.png (1,296×326 px, 106 KB)

  • Sometimes we indicate the optional field in its label instead of indicate the required one.

Captura de pantalla 2022-04-19 a las 11.25.08.png (1,342×346 px, 125 KB)

User stories

  • As a designer, I need to know which solution use when I'm creating a new form with required/optional fields.
  • As a user, I need that all Wikimedia forms have the same required/optional behavior when I'm filling out forms.

Considerations

  • Putting the asterisk on the required fields is considered best, although putting the asterisk before the word is even better.
  • In this article it's suggested that adding both the asterisk for required fields and indicating the optional fields is ideal: "While it’s not obligatory, marking the optional fields does lighten the user’s cognitive load: in the absence of that word, the user must look around and infer that the field is optional based on the other fields being marked as required. If the word optional is next to the field descriptor, that task becomes a tad easier. Not specifying that a field is optional is not a deal breaker, but doing so is a nice perk."
Internationalization consideration
  • Is the asterisk universally understandable?
  • How are we dealing with translation of the indicator tooltip
Development considerations

Any choice would be needed to roll-out to both, Codex and OOUI, in order to not end up with different behaviour in views using both libraries.

Acceptance criteria (or Done)

Design

  • Define behavior in Figma:
    • Required form fields
    • Optional form fields

Code

  • Implement solutions in Codex

Event Timeline

FWIW, I agree with the proposal for both the asterisk (though in a different colour to the label) for mandatory fields, and the "optional" after optional fields.

Note that the asterisk* came together as an indicator for a description in forms legend. That's not the case anymore in (Western) user-interfaces and it is often used lone-standing. I still think it's not the most user-friendly solution as it is sometimes hard to see (if put into superscript of label), it requires previous knowledge to decipher.
I also would be critical about a universal, language-independent application of this pattern.

(*) … required

@bmartinezcalvo Where did you see the asterisk above the label from task description's first example image? That should actually not be the case in our user-interfaces. The only current de-facto standard we have is the OOUI way:

image.png (1,434×142 px, 15 KB)

Exploration process

Our current TextInput have an asterisk as end icon to indicate that the field is required. But this solution is not the best since is not scalable with the rest of form items (such as selects)

Captura de pantalla 2022-05-03 a las 13.53.57.png (1,240×674 px, 188 KB)

For this reason, I decided to move the asterisk next to the label, so we could use the same solution for all form items:

Captura de pantalla 2022-05-03 a las 13.59.21.png (1,570×966 px, 328 KB)

During the Design Review on April 21 I shared with designers the following proposals:

  • Option 1: using asterisk at the end of the label to identify the required form items.
  • Option 2: using asterisk for required items and Optional for non required items.

Options.png (3,180×923 px, 43 KB)

I collected feedback from all designers (you can read all feedback here) where the majority commented to display only the optional field and ask only for what is really necessary, claiming that if we display the asterisk in the required fields the forms with many required items and few optionals could be too heavy (e.g. Create Account or Log in). Also, as we can read in this study users will be more open to filling in more form fields if we only display the optional fields:

Research shows that most users approach forms with “voluntary over-disclosure” behavior. This means that they regularly offer more information than required even when they’re told that doing so is voluntary. This contradicts the traditional assumption that users approach forms with the intent to complete as few fields as possible. However, when you mark a form’s required fields, it jeopardizes voluntary over-disclosure and makes users skip optional fields.

In this real example for Create Account we can compare the use of required fields (1) or optional fields (2), and we can see how displaying only the optional fields makes the form much lighter and easier to fill for the user.

Required vs. Optional.png (3,280×1,786 px, 222 KB)


Final proposal: indicate only optional fields

After evaluating feedback and discussion from designers and taking into account that form fields are required by default, I think we should go with the proposal to indicate just the optional fields (view Figma here) to avoid too heavy forms with many required fields (e.g. Create Account) or forms in which there are only mandatory fields with asterisks everywhere (e.g. Log in).

Final proposal.png (3,180×1,095 px, 203 KB)

bmartinezcalvo changed the task status from Open to In Progress.May 3 2022, 11:33 AM
ldelench_wmf changed the task status from In Progress to Open.Jan 20 2023, 7:06 PM
ldelench_wmf triaged this task as Lowest priority.