multiple check boxes
May 08, 2013
By
Pat O'Connor
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
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
this looks great Richard, thank you
Pat, Out of interest, do you feel like you now understand how this mechanic works sufficiently that you would be able to do it yourself next time? Was the explanation easy enough to follow?
hi Richard,
to a certain extent yes, it was great to see how you used the variable text, but again, if another layer of complexity was added, I might struggle
thanks again
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.
thanks guys,
i will take a look at that again and change the trigger
This discussion is closed. You can start a new discussion or contact Articulate Support.