detect unchecked checkbox Jul 13, 2017 By wiird ux I have a couple of checkboxes and attached variables with each of them. if the user checks a box, its variable is set to true, BUT if the user unchecks, its variable needs to be set to false again. how?
Phil Mayor Hero almost 7 years ago07/13/17 at 4:08 pm (UTC) If you have a submit button only change the variables when you submit it is often easier this way.
Phil Mayor Hero almost 7 years ago07/13/17 at 4:09 pm (UTC) If not you could set the variable to not assignment which will toggle it.
K kai almost 7 years ago07/14/17 at 3:09 pm (UTC) I have tried to set this up, but I could not manage this. Could you perhaps make a demofile demonstrating this?
K kai almost 7 years ago07/14/17 at 4:29 pm (UTC) I found out how to set up the triggers, but in my model I have 2 layers. on layer 1, the user sets the checkboxes selected or unselected. In layer 2 I want to preset the state of the checkboxes to the variables (of the checkboxes) of layer 1. this trigger that I set did not work: on layer 2: change state of checkbox 1 to selected (when timeline starts) if variable x is equal to true.
4 Replies
If you have a submit button only change the variables when you submit it is often easier this way.
If not you could set the variable to not assignment which will toggle it.
I have tried to set this up, but I could not manage this. Could you perhaps make a demofile demonstrating this?
I found out how to set up the triggers, but in my model I have 2 layers. on layer 1, the user sets the checkboxes selected or unselected. In layer 2 I want to preset the state of the checkboxes to the variables (of the checkboxes) of layer 1.
this trigger that I set did not work:
on layer 2:
change state of checkbox 1 to selected
(when timeline starts)
if variable x is equal to true.
This discussion is closed. You can start a new discussion or contact Articulate Support.