handle form component visibility with javascript
hey folks, i ran into the following problem.
using the form builder i render a survey that has a lot of subquestions (a question only visible if a certain answer was given). locally everything is fine. however live it feels very slow (especially with throttled network) and if you make multiple clicks per second (e.g. checkbox list), you even loose state because of the re-render.
now my idea is to initially render all the questions and do the show/hide part with javascript.
what is your suggested approach on tackling this issue? is there a
fyi: additional i use a wizard to display only small chunks of the survey at once.
any kind of input/ideas highly appreciated!
using the form builder i render a survey that has a lot of subquestions (a question only visible if a certain answer was given). locally everything is fine. however live it feels very slow (especially with throttled network) and if you make multiple clicks per second (e.g. checkbox list), you even loose state because of the re-render.
now my idea is to initially render all the questions and do the show/hide part with javascript.
what is your suggested approach on tackling this issue? is there a
hidden()/visible() javascript counterpart to the already available methods? how do you track the state in the browser? is there some kind of obejct i can hook into?fyi: additional i use a wizard to display only small chunks of the survey at once.
any kind of input/ideas highly appreciated!