Answer the question
In order to leave comments, you need to log in
How to properly store custom web form field descriptions in nosql database?
Good evening.
Help find resources where you can get ideas on how best to design a database.
Task: admin creates web forms, field types are stored in the database. The description of the web form structure is stored in the database. Users use these web forms to add information. The data is also stored in the nosql database.
According to the entered data, tables with data are formed, the column names are taken from the form description.
Answer the question
In order to leave comments, you need to log in
I think it should be based on a set of possible HTML input values and their tags.
For each type, it is necessary to store its own set of values, for example, in the json/text field.
For reference refer to the input tag (or https://developer.mozilla.org/en/docs/Web/HTML/Ele... )
Possible structure (YaML notation):
form:
- tag: label
attr:
body: I Agree
- tag: input
attr:
type: radio
name: agreement
checked: checked
value: yes
- tag: label
attr:
body: I don't agree
- tag: input
attr:
type: radio
name: agreement
checked:
value: no
- tag: input
attr:
type: submit
value: Submit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question