I'm architecting a webapp that requires generating multiple forms dynamically. The forms will be defined by admins in a backend/database (a form has many input variables that can be of different types, like text, categorical variable (Male/Female), integer or continuous variable (with bounds)). When someone visits the page for Form 1, we should show all the input variables for Form 1
I'm trying to figure out how to generate the forms efficiently. How can I dynamically generate relevant UI elements for each data type? E.g. integer would be a slider from 0-10 but a continuous variable should be an input field accepting integers (within bounds). Categorical should be a radio button.
Is there a library that could help? Open to using any front end framework that makes my job easier
Aucun commentaire:
Enregistrer un commentaire