Copy link to clipboard
Copied
Hello! I am working in Captivate 8 and trying to use a single button to switch between two smartshapes. I cant for the life of me figure out how to do this. I know its possible to make it "show" and "hide", but is it possible to just have the user click on a button and each time it is clicked, it goes back and forth between two different smartshapes?
Im attempting to show the user the functionality on a piece of equipment when they press a button. When they press the button, it goes back and forth between two different read outs on the screen.
Thanks in advance!
Did you look at the blog post for which I posted a link: I offer 4 scenarios.
It can also easily be done, if you have a separate (shape) button to toggle between two different objects:
Copy link to clipboard
Copied
Yes. You need to have the button execute a Conditional Action that toggles the value of a user variable and then uses that user variable in a condition to decide which shape gets shown or hidden.
Copy link to clipboard
Copied
Ya lost me! haha. Are there any examples of this being done that you know of?
Copy link to clipboard
Copied
Did you look at the blog post for which I posted a link: I offer 4 scenarios.
It can also easily be done, if you have a separate (shape) button to toggle between two different objects:
IF v_visib is equal to 0
Hide ShapeOne
Show ShapeTwo
Toggle v_visib
ELSE
Hide ShapeTwo
Show ShapeOne
Toggle v_visib
4. Assign this action to the Success event of the button
Copy link to clipboard
Copied
Okay, im making progress! It toggles to the second screen, but then wont toggle back to the original. I think im missing something.
Copy link to clipboard
Copied
Can you post a screenshot of the conditional action? Use the Preview button (first button, looks like Play, in the control panel top right of the Advanced Actions dialog box)? Is the button that triggers this action pausing?
Copy link to clipboard
Copied
GOT IT! was showing and hiding the wrong shapes. THANK YOU SO MUCH!!!!
Copy link to clipboard
Copied
OK!
Copy link to clipboard
Copied
Maybe this post can help you: