catalystneuro/json-schema-to-dash-forms

Is there a way to set (default) values for the form that will be rendered?

newlog opened this issue · 0 comments

newlog commented

Hey,

First of all, great job with what you built here. It seems you are the only one on the whole internet brave enough to tackle this!

I spent a couple of days trying to figure out if there is a way of setting the values of a form that will be rendered. In your examples, you use the json schema in order to define the form, but I couldn't find a way to actually set some values in such form.

After reading your documentation, I tried defining a callback with the output set to Output({'type': 'external-trigger-update-forms-values', 'index': MATCH}, "children"), or Output({'type': 'internal-trigger-update-forms-values', 'index': MATCH}, "children"), and returning something in there. However, this did not work (there is a PreventUpdate there avoiding the actual update.

Given that I don't fully know how all your code works together, I'm here to ask if there is a standard way of doing this.