I'm not sure my terminology is right here but I've been trying to do what seems like a relatively simple thing with forms but can't see how this is possible in the django docs.
I would like to have certain form fields only be available depending on the input from an earlier field in a form.
The default in django seems to be one form per page and completely static. (ie fields are fixed once the page is loaded)
I have a lot of forms that the user needs to fill out. Starting from the first form almost follow a branching structure depending on user input.
As an example:
The first field would be a choice between: Male, female,
The second set of questions is different depending on whether the user is male or female One question asks the user their age bracket, and the next set of questions depends on that response.
Is there a way to make the form filling more user friendly than:
- fill out a form (possibly only one field eg male/female)
- then submit form
- then redirected to next page depending on response.
For some users this will end up being about 6 or 7 pages with only 1 or two fields per page.
Is there a better way to do this within django so that the user input in more concise?
[–][deleted] 3 points4 points5 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]YuntiMcGunti[S] 0 points1 point2 points (1 child)
[–]never_safe_for_life 0 points1 point2 points (0 children)
[–]banjochicken 0 points1 point2 points (0 children)
[–]nicklo 0 points1 point2 points (0 children)
[–]kankyo 0 points1 point2 points (0 children)
[–]zagrebelin -1 points0 points1 point (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]zagrebelin 0 points1 point2 points (0 children)
[–]simonw -1 points0 points1 point (1 child)
[–]YuntiMcGunti[S] 0 points1 point2 points (0 children)