By irishgringo on
I have been trying to solve a fairly simple question. My hunch is that someone here has some sample code that I can look at.
I want to do a single form with 5 YES/NO questions.
The submit button will add up all of the yes's, to create nValQuestions.
so nValQuestions can be between 0 to 5.
On submit, the page will route to...
page0 if nValQuestions = 0
page1 if nValQuestions is 1,2.
Page3 if nValQuestions is 3,4,5.
And I want this to be Drupal 7
could someone show me some example code that would do this please.
thanks
Comments
You can try out the following