Validation of a field, if true complete do not leave other f

jprex03 27 Feb, 2012
Validation of a field, I'm doing a survey of 10 questions, if the person answers the question number 2, then you can not answer the other 8 questions, and automatically go to save. Buy the book and helped me a lot, can you help?
Thank you.
GreyHead 27 Feb, 2012
Hi jprex03,

You'll need to write a little piece of JavaScript to detect the answer to Q2 and submit the form if it is Yes

Bob
jprex03 28 Feb, 2012
Thanks for responding, I have a question, not Javascript, it is easier to use check box or select box? congratulations for the book helped me a lot, you'll have any suggestions for learning Javascript?
GreyHead 28 Feb, 2012
Hi jprex03,

It depends on he form and the number of choices. If there are just a few choices I prefer checkbox or radio box groups, if there are many choices then a select box is probably better. But it really is a question of personal choice.

W3CSchools is usually a good place to find tutorials.

Bob
This topic is locked and no more replies can be posted.