wearebraid / vue-formulate

⚡️ The easiest way to build forms with Vue.
https://vueformulate.com
MIT License
2.25k stars 245 forks source link

Dynamic disabled / visible expressions #419

Open andyfensham opened 3 years ago

andyfensham commented 3 years ago

Is it possible to add dynamic visible / invisible or disabled expressions, or calculated fields based on other fields. For e.g. you might disable a specific field when a specific value is selected in a dropdown, or hide a field on the basis of certain dropdowns through an expression. Almost like Angular Formly

justin-schroeder commented 3 years ago

Sure, you have the full power of Vue available to you!

andyfensham commented 3 years ago

Sorry, I meant from within the json

eyleron commented 3 years ago

I made a list of some examples where vue form libraries try to do this: Issue #230 Can you use v-if's using the schema generator.

I think it should be re-opened as a feature/ RFC to add to the upcoming major version, but I know first it requires buying into a method for either representing conditional logic in schema JSON or using some other pseudo-JSON in the schema.

justin-schroeder commented 3 years ago

@eyleron ive reopened the other issue for now 👍