vue-formulate icon indicating copy to clipboard operation
vue-formulate copied to clipboard

Dynamic disabled / visible expressions

Open andyfensham opened this issue 3 years ago • 4 comments

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

andyfensham avatar Apr 22 '21 13:04 andyfensham

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

justin-schroeder avatar Apr 22 '21 13:04 justin-schroeder

Sorry, I meant from within the json

andyfensham avatar Apr 26 '21 11:04 andyfensham

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.

eyleron avatar Jun 02 '21 20:06 eyleron

@eyleron ive reopened the other issue for now 👍

justin-schroeder avatar Jun 03 '21 00:06 justin-schroeder