open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
34 stars 25 forks source link

Implement "generic" JsonLogic editor #1897

Open sergei-maertens opened 2 years ago

sergei-maertens commented 2 years ago

Thema / Theme

Form designer

Omschrijving / Description

Currently form designers build JsonLogic expressions by hand (as JSON) and enter this in a textarea (advanced logic trigger, set variable/component value action,...). This can be improved with a proper editor that builds the expression under the hood.

We are increasingly using JsonLogic and complex expressions are both useful and common (such as using and or or conditions, or negations (!)). It would be useful to have a proper re-usable editor that can be plugged into the supported places, which generates the JSON for the user. They can then select the operator, specify the arguments for the operator and combine expressions + get them presented in a more human-readable manner to better understand what the expression means.

Desired interface:

Added value / Toegevoegde waarde

Aanvullende opmerkingen / Additional context

No response

joeribekker commented 1 year ago

Refinment: Requires a stakeholder.