vue-dynamic-forms icon indicating copy to clipboard operation
vue-dynamic-forms copied to clipboard

Triggered Dependent Fields

Open eyleron opened this issue 3 years ago • 0 comments

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: https://github.com/wearebraid/vue-formulate/issues/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

  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

eyleron avatar Jan 29 '22 02:01 eyleron