Skip to content

Add option to never "clear" prefilled fields. #6086

@LaurensBurger

Description

@LaurensBurger

Thema / Theme

Frontend

Omschrijving / Description

As a form designer i want to build "dynamic" forms, that cater to multiple audiences with multiple plugins. (DigiD, eHerkenning, anonymous, Yivi etc.)

To help me create these forms i need a option for fields that have been prefilled to never clear. Not when hidden and not when the step is made non applicable.

This feature would allow me to create forms without having to worry about the users accidentally choosing a "wrong" path in a form, changing their path later with the result of having the prefilled data wiped because a step, or fieldset became hidden/non applicable by the "wrong" choice.

Currently a form builder needs to decide and use logic to prevent this from happening, and for example uses the "auth" object to decide for the user.

Logic rule 1:
If DigiD > hide "kvk" step/fieldset, disable "bsn" step/fieldset
(disable because we expect pre filled data)

Logic rule 2:
If kvk > hide "bsn" step/fieldset, disable "kvk" step/fieldset
(disable because we expect pre filled data)

Logic rule 3:
If not kvk or bsn > hide "bsn" and "kvk" step/fieldset, show "indienen als choice"

While this works, it creates a very restricted "flow" that can only work this way.

If i could "never clear" or perhaps "rehydrate" the prefill data whenever fields are visible, i can skip these logic rules, build a form in a way that suits the "process" the best.

Added value / Toegevoegde waarde

No response

Aanvullende opmerkingen / Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: prefilltriageIssue needs to be validated. Remove this label if the issue considered valid.

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions