form-js / forms.js

Fully featured javascript form builder
https://formsjs.io/
8 stars 4 forks source link

String based conditions #14

Closed Trilmatic closed 4 months ago

Trilmatic commented 6 months ago

Create a string based conditions logic. conditions option should now accept string or function.

the logic behind should be something like 'myfield=1&myfield=2|myfield=3'; and this defines that if myfield value is 1 and 2 or 3 then the field should be hidden.

Trilmatic commented 6 months ago

In the same way this could then be applied to required, disabled, validation etc.