I’m trying to do the following:
- User defines a schema.
- Save the schema to the db.
- Use AutoForms to generate form on the fly when user selects relevant Schema.
tl, dr: Is this possible?
Longer version: This is where i have got too. The exact error I’m getting is a validation error, which is confusing me.
The point is, i can save a schema and then reconstruct it as a variable (the fields bit). This i can then pass to a template, like so…
This actually worked really well. Using the ‘test’ below:
I get the following output:
I do not really understand where the form is failing validation? Suggestions most welcome. Note: the idea is that the Submit would save the form into the Forms collection.
Thanks so much.