Skip to content

Pattern "merking av valgfrie og påkrevde felter" Fields that change required/optional value #3761

@Camulos

Description

@Camulos

Should the pattern include this case:
In a form, we have fields A, B, C, and D.

Fields A and B are initially required.
Fields C and D are initially optional.

The question in field B is of the Boolean type (do you want to or not?).
If "true", then field C must also be filled out.
C is therefore no longer optional, and the labeling of the field must be updated.

We can change the tag that indicates whether the field is required or not, but there may be more to this pattern that should be addressed — for example, informing the screen reader about the change,
is that necessary when the change occurs after the field that triggers it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    patternPatterns are best practice solutions for how a user achieves a goal.🕵️ investigateNeeds investigation

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions