Need Javascript code for simple lifestyle survey form

  • aycaramba!
  • Born
  • Born
  • aycaramba!
  • Posts: 2
  • Loc: Ipswich, UK

Post 3+ Months Ago

Hi folks,

I'm looking for help on producing a javascript code to perform some simple actions on my lifestyle survey form. I've just started looking into coding with Javascript and obviously have a lot to learn. Would anyone be able to help with the following requirement that I've got for my site?

Basically, I have an online lifestyle survey which the user completes. The results are purely for their eyes only - no data is sent anywhere.

There are two blocks of simple questions, each with a yes or no radio button answer. What I want to do is to have the user enter their choice for each radio button and then click submit after answering all the questions in the block. On submit, the javascript should total up the number of no's for the first block of questions and write an answer to the web page depending on how many no's. There are only 3 possible answers.

For the second block of questions, there are only two possible answers, this time dependent on how many yes answers the user gives again on submit.

I've tried searching the web for some guidance on how to go about this but have not had much luck. As I mentioned earlier, I'm learning javascript but unfortunately this particular requirement is beyond me at the mo!

For more info on the survey itself and the answers that need to be specified have a look at the page itself at http://www.secondincome.ws/survey.htm. Note, the scripts already in action on the site are, sadly, not my own. In time...

Any help would be much appreciated.

Cheers,

Aycaramba!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 96 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.