Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Toggle between two smart shapes with one button?

New Here ,
Jun 21, 2016 Jun 21, 2016

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!

376
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 21, 2016 Jun 21, 2016

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:

  1. Create a user variable v_visib with a default value of 0
  2. Create the two objects, and make one of them visible, the other invisible in output (eye icon in its Properties panel); I will label them ShapeOne and ShapeTwo, where ShapeOne is visible at the start
  3. Create this advanced conditional action (you can also turn it
...
Translate
Community Expert ,
Jun 21, 2016 Jun 21, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2016 Jun 21, 2016

Ya lost me!  haha.  Are there any examples of this being done that you know of?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2016 Jun 21, 2016

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:

  1. Create a user variable v_visib with a default value of 0
  2. Create the two objects, and make one of them visible, the other invisible in output (eye icon in its Properties panel); I will label them ShapeOne and ShapeTwo, where ShapeOne is visible at the start
  3. Create this advanced conditional action (you can also turn it into a shared action):

               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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2016 Jun 21, 2016

Okay, im making progress!  It toggles to the second screen, but then wont toggle back to the original.  I think im missing something.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2016 Jun 21, 2016

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2016 Jun 21, 2016

GOT IT!  was showing and hiding the wrong shapes.  THANK YOU SO MUCH!!!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2016 Jun 21, 2016
LATEST

OK!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2016 Jun 21, 2016
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources