justinmind-logo
 
Upvote 2

Toggling Check Boxes

Answered Victor Conesa 12 years ago

I need to toggle a check box as selected and not selected by clicking a text box. I am new to the product so I just don't understand how to do this

Best Answer
photo

Create an "On Click" + "Set Value" event to change a checkbox to be checked.

24719f6c67c4cfc39c4a963d7b6c26c6

Replies (13)
photo
1

Select the text box, then go to 'Events' and add an interaction. Choose 'set value' and select the checkbox. Then define if you want it checked or not.

photo
1

Yes, but if the box is already checked how do I uncheck, and if it is unchecked how do I check it

photo
1

Victor, I need to know how to toggle a check box from checked to not checked during the simulation, your response does not answer my question

photo
1

Sorry, I didn't get it. You can add a condition to your 'set value' action so that it checks if the checkbox is checked. If that's the case you change it to 'unchecked'. Then define the 'else' case as setting the checkbox as checked.

photo
1

Thanks for your response, do you have any examples you can share with me, I am pretty new to the product and don't really know how to do what you describe

photo
1

I figured it out, thanks

photo
1

Cool. I'm proud of you ;)

photo
1

Now Prototyper 4.6 includes the 'toggle' event.

photo
1

How do I set a checkbox to select all by default on page load? I can set the checked value and all the sub items but this screws with the toggle event


thanks


russ

photo
1

Could you give more details about your prototype please?

photo
1

Let's say I have 5 checkboxes and another checkbox to select all. On page load I would want the select all state to be set so all the checkboxes are ticked.


Make sense?


thanks


Russ

photo
1

You can select the check boxes and change the value to 'checked' in properties.

photo
1

Create an "On Click" + "Set Value" event to change a checkbox to be checked.

24719f6c67c4cfc39c4a963d7b6c26c6

Leave a Comment
 
Attach a file