In this forum we speak English.
What would be the best way to generate forms with dynamic inputs?
Greetings to the whole community,
I tell you my query, I am currently working on a web project, with the Laravel framework on the server side, SQL SERVER as the database engine and jquery as the library on the client side. The project consists of a maintainer of the required documentation towards a company at the time of entering a real estate construction site.
Here is the problem, there is documentation that requires additional information, which is not required for other documents, for example:
We have a work accident certificate: In the document upload form, in addition to the document, information regarding the expiration date of the document, accident rate... among other data must be required.
So let's suppose that in the future they want to add a new document, the "Deed of a house" document, and this new document also has specific information, such as the name of the notary who made the deed, the date the document was signed, etc. other data...
We have been thinking about how to develop a module where a person, with the proper permissions, registers the document that is going to be required from the company. Additionally, all the information that will need to be stored and that this in turn automatically generates the form with the required inputs. Currently one of the solutions that we had been developing was to generate a column with the parameter required by each document, but we wondered if this was correct, since it could be the case that there are many parameters and we do not want to fill the table with so many. columns.

What would be the best way or what would you recommend from your experience?
First of all, Thanks.
Please or to participate in this conversation.