Help making a questionaire with javascript/html?
I want to make a questionaire and have a, b,c,d or yes/no answers. And if you click on C or click yes it will show a follow-up question you predefined. For ex, the question will read “do you like pizza?” If you click yes it will automatically show a following question such as “what topping do you like on your pizza?” My question is how do you make the follow-up question show up when you select a certain answer?
Observing members:
0
Composing members:
0
10 Answers
Are you familiar with Javascript? Are you using any type of framework like jquery?
I dont know anything about jquery. I am familiar with javascript.
Then you might want to check out jQuery :) Also, are you sure you want to create it yourself and not use something like Google Forms or Survey Monkey? :)
What @Vincentt said about jQuery. If you’re already familiar with javascript you will wonder how you ever lived without JQuery.
Their site has an extensive catalog of free code and demos. Their drop down section covers what you need and then some plus they give you very helpful guidelines on how to use it with your code.
@Lawn thank you for that. That is what im looking for. Is there a way i can see the results from the form submission?
Just to clarify, do you want to simply display the results that the current user entered so they can review their individual answer OR do you want to store all results from several different users and display the totals?
I want to see the answers the users choose
Then you will need a way to save that information to the server. Do you understand the difference between client and server? Client-side code usually includes HTML, JavaScript and CSS.
Server-side might include: PHP, ASP, JavaScript, Ruby, Python, etc.
Do you have a web host? You will need to determine what languages they support. PHP is the most common. If that’s the case, then you could use PHP to save the results to a JSON file or to a MySQL database. Are you familiar with either of those?
A newer option is MeteorJS. Meteor uses JavaScript on both the client and the server.
using the site @Lawn used, how do i add more questions?
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.