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.
- Sometimes we indicate the optional field in its label instead of indicate the required one.
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







