I was curious, and wanted to generate a discussion, around a standard data model used to store form data.
At a current client, we need to build 20 online forms, some with up to 100 fields (text box, text area, radio button, multi select, checkbox, single select). Instead of creating a table for each form (each field maps to a column), I would like to create a single table that is flexible enough to store values from multiple forms regardless of the variables that exist between each form (# of fields, field types, etc.). I have scene the idea of a virtual table, where you create a fixed number of columns, and then you have another table that linkes columns to fields. The application then contains the logic to ensure data is being stored and retrieved from the virtual tables. Unfortunately, I have not found any information including best practices and designs on the web that are from a good source, and was hoping someone could point me in the correct direction. I assume this is a common problem and there are design patterns or even available software to help create such a data model, and interfaces to the data. We are utilizing ASP.NET and SQL Server for the technology.
Thank you in advance for your help.
- Mike