- Multiple decision tree answers, one per table line
- The choice input data is a tree structure created with nested dictionaries and lists
- Data is loaded to the widget via AJAX / JSON, so that even very big decision trees don't add extra payload on your form page
- Decision tree input
- Product feature matrix input
- Other complex tabular data involving dropdowns and free form text input
Decision tree data is exported to the widget as a JSON. It's a nested structure of dictionaries and lists. First you need to generate your JSON data from a spreadheet.
Setting up the widget requires
- Creation of a row input form as zope.interface.Schema or plone.directives.form.Schema based form
- This form should have two or more
- Setting up a main form with a data grid field where DGF uses the created row schema as row schema
- For the row schema you need to set up a tree widget data source URL callback
For further details see the demo testform. This form will be available in
/@@dgftreeselect-testview after installing this add-on.
Currently this widget offers only edit interface and no view interface. Adding one should be a matter of writing some TAL page template and JS code.
JSON loads are marked with an unique id. You can cache these JSON files forever
in the browser or in the front end proxy with