You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose the use of a form configuration represented by JSON, similar to what was done with Teamware but doesn't have to be as complicated. Configurations are stored as a json field the Survey model.
When responding to a survey, this configuration is used to build the form and shapes the output structure of our responses. The responses of the surveys can also be stored as a json field an the Response model.
Looks like django's Form class doesn't support dynamically adding fields. Probably best into either look into using the FormSet class or just roll our own form validator.
The text was updated successfully, but these errors were encountered:
I propose the use of a form configuration represented by JSON, similar to what was done with Teamware but doesn't have to be as complicated. Configurations are stored as a json field the
Survey
model.When responding to a survey, this configuration is used to build the form and shapes the output structure of our responses. The responses of the surveys can also be stored as a json field an the
Response
model.See the following board for more detail:
https://miro.com/app/board/uXjVLDlk-rQ=/
e.g. here's a basic configuration with 1 section and 2 questions in the section:
Looks like django's Form class doesn't support dynamically adding fields. Probably best into either look into using the FormSet class or just roll our own form validator.
The text was updated successfully, but these errors were encountered: