How to create a generic form with dynamic forms

Imagine that your database contains several tables of types or categories. These tables are very simple, often with only an identifier and a text fiel...