Package use case - creating dynamic forms #231
Unanswered
wallythewebdev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all -
Just wanted to check if anyone has used this package to create a dynamic form.
The ideal is to allow the user (in a cms system) to define the Form and add fields to it as required.
This would end up looking something like this (i've created an example array - that will become a model with relationships for the fields at a later stage).
Then from the balde I would create a conditionals and loops to create the fields in the form.
I had hopped to just create the form in the controller and then pass the whole markup to the blade as one variable, but looking at the docs I didn't see a clear way to do this.
Wondering if anything has attempted something like this already and is aware of any pitfalls and points of failure? Or if I am re-inventing the wheel and there is an easier way to achieve this.
Beta Was this translation helpful? Give feedback.
All reactions