multiple check boxes

May 08, 2013

hi all,

the screen i have contains multiple check boxes. there is also an alert that is initially greyed out (but the buttons are still active). Is it possible to set up the page so that the buttons on the alert do nothing until all check boxes are selected. so if the user tries to select a button on the alert with less than 4 checkboxes selected they get a warning message to remind them to select all boxes?

thanks in advance

Pat

8 Replies
Rich Calcutt

Hi Pat, Not sure if this is what you're after, but I've attached a story that does the following:

IF user clicks 'yes' or 'no' before all checkboxes are selected, warning layer is displayed. 

To do this, I:

1) Created the warning layer that hides itself after a few seconds

2) Made the 'selected' state of the check boxes +1 to a new number variable

3) Made the warning layer show if user clicks the yes or no button IF the new variable is not equal to 4 (the number of check boxes.

Hope this helps you, 

Rich

Phil Mayor

Rich, 

There is a big flaw here, If I select one button again and again I increment the variable.

It is much better to do this sort of thing on the object button (e.g. the Next Button) or in this case the Yes/No button, I would also reset the variable each time I pressed the button.

Here I would not use a variable there is no need just use the selected state to validate.

Rich Calcutt

Phil Mayor said:

Rich, 

There is a big flaw here, If I select one button again and again I increment the variable.

It is much better to do this sort of thing on the object button (e.g. the Next Button) or in this case the Yes/No button, I would also reset the variable each time I pressed the button.

Here I would not use a variable there is no need just use the selected state to validate.


Quite right - unnecessary additional layer of complexity. Why make it simple, eh?

Pat - if you're still monitoring this thread, please see Phil's advice and instead of using a variable, trigger the layer using conditions IF state of checkbox equals selected. 

Phil - thanks for the advice. My solution was sloppy. 

Phil Mayor

Richard Calcutt said:

Phil Mayor said:

Rich, 

There is a big flaw here, If I select one button again and again I increment the variable.

It is much better to do this sort of thing on the object button (e.g. the Next Button) or in this case the Yes/No button, I would also reset the variable each time I pressed the button.

Here I would not use a variable there is no need just use the selected state to validate.


Quite right - unnecessary additional layer of complexity. Why make it simple, eh?

Pat - if you're still monitoring this thread, please see Phil's advice and instead of using a variable, trigger the layer using conditions IF state of checkbox equals selected. 

Phil - thanks for the advice. My solution was sloppy. 


Rich your not sloppy, some of your solutions amaze me and make me smile.  The biggest complement I can give is "I wish I built that"  and I say that about your stuff all the time.  

This discussion is closed. You can start a new discussion or contact Articulate Support.