Form Tools
Validation based on a previous selection - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18)
+--- Thread: Validation based on a previous selection (/showthread.php?tid=2690)



Validation based on a previous selection - P-Tron - Sep 18th, 2013

Hi guys I am a little stuck here and would appreciate a bit of help.

In my form a have a parent question then 4 "child" questions.

I need to set up validation so that if they select the parent question they need to select one of 4 child questions that follow it.

The parent question is a check box ie "What type of loan do you need?".

The the next 4 questions ask for more specific information and are Option A or B radio buttons and one that is an input text field but cant work out how to validate it with js so the user answer one of the questions.

Here is a simple break down of it

Q. What type of loan do you need? > 3 Checkbox options

Q. Buy a new home > Option A or B
Q. Refinance existing loan > text input field
Q. Renovate / build > Option A or B
Q. Use equity in your home for another purpose > text input field

The validation needs to be if they check the box they must answer one of the question below it.

Any help here would be greatly appreciated.

Cheers



RE: Validation based on a previous selection - melmando - Oct 28th, 2020

Tous les bon moment de la journée. Je vous conseille d'essayer cet endroit: naviguez ici, car c'est là que j'arrive à soulever ma bite, je suis sûr que vous aussi, tout ira bien


RE: Validation based on a previous selection - RonaldA - Nov 1st, 2020

Here on this blog the updates quite educational and we able to learn new things as well. There should be people who might have amazing skills and while sharing the stuff they can help to improve their knowledge. Thumbs up with your essaywritinglab review that would be great.