Is there a way to create a dynamic form using Laravel and MySQL? I am trying to build a form, adding to it different fields and input types such as:
- text box, text area
- radio buttons
- checkboxes
- file upload
and so on. I am thinking of something similar to gravity forms. The user would customize the form by stating which fields are mandatory, optional or not available.
What I have reach so far is creating the fields normally in the database, have another table responsible for their status as mandatory, optional or off and then displaying them accordingly.
This works normally without any issue. However I am trying to make it more dynamic by defining some sort of generic way to create future forms without the need to create a field for each in the database. Bear in mind that the fields now are just text box.
Would MySQL help doing such forms or would I need to use something like MongoDB?