Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Triggered Dependent Fields #290

Open
1 task done
eyleron opened this issue Jan 29, 2022 · 0 comments
Open
1 task done

Triggered Dependent Fields #290

eyleron opened this issue Jan 29, 2022 · 0 comments

Comments

@eyleron
Copy link

eyleron commented Jan 29, 2022

Is your feature request related to a problem? Please describe.

A common pattern in forms is that fields can trigger other fields to show/hide/require/un require.

"Will you be bringing a date?" True => showField([date_first-name, date_ladt-name]

If item in enum, if string, if date less than, checkbox boolean, then show/hide/require/unrequire /clear field or fieldset or page...

Reference with examples: wearebraid/vue-formulate#230

Describe the solution you'd like

A model for describing form behavior beyond just field validation.

Describe alternatives you've considered

Vue-formulate initially said "use computed" but the problem with this is it breaks the paradigm of declarative models for forms. Imagine having hundreds+ of forms needing logic like this, edited in an admin editor. One can't hand-edit computed functions.

VueFormulate's successor is supposedly adding this, as most competitors have.

Additional context

No response

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant