Link to home
Start Free TrialLog in
Avatar of Bulldog7
Bulldog7Flag for United States of America

asked on

Complex checkbox validation question(s)

I have a request to create multiple "sections" with multiple checkboxes underneath and they have requested:

"...If EITHER one of SECTION TITLE A is NOT checked off (i.e., has to check ALL to proceed) or if either of SECTION TITLE B IS checked-off, then a pop-up window should come up saying:  yaddayaddayadda.  When the user clicks OK, they are re-directed to another page.

...or if ALL of SECTION TITLE A are checked off and NONE of SECTION TITLE B are checked off, then force to save and load a specific page.

...and if ALL of SECTION TITLE A are checked off, NONE of SECTION TITLE B are checked off, and ANY warnings are checked off, a popup should come up: Warning!"

Is this actually doable? The person requesting isn't sure but would like it if possible. I have already created all of the checkboxes and wording next to them, but am confused as to how I'd verify check/unchecked in multiple sections, or how to load a specific page based on results. (not a real programmer, just trying to help out until person returns...sorry for so many questions!)


Section Title A
 
q	option 1
q	option 2 
q	option 3
q	option 4
 
Section Title B
 
q	option 1
q	option 2
q	option 3
q	option 4
q	option 5
 
WARNINGS:
q	option 1
q	option 2

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of aibusinesssolutions
aibusinesssolutions
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bulldog7

ASKER

aibusinesssolutions, I think just the warning has to come up and then either the page reloads or is directed to another page (of which I'm not really sure how THAT works either. I apologize for all of the questions, trying to help out a group, but have limited grasp beyond edits and adds...not to mention this somehow links back to SQL.

When you write "do some stuff/do some other stuff" would that imply the loading or redirecting of pages?
...also, what would be the easiest way to create "groups" of the 3 sections I have listed, so that they can be referenced as such in your code?

Thank you for all of your advice btw...