Skip to main content
Known Participant
January 31, 2023
Question

Series of Smart Shape buttons that control the next button in the series

  • January 31, 2023
  • 3 replies
  • 990 views

I want to create a series of six smart shape buttons (SSB).

Each SSB enables the next in the sequence.

On slide enter only button 1 is enabled.

Clicking button 1 should change a state on another element AND enable button 2. However not only does button 2 not enable but the rest of the advanced action also fails and the state change doesnt happen either.

What am I doing wrong?

Is it just impossible to change the Enabled property of a SSB at runtime?

    This topic has been closed for replies.

    3 replies

    Stagprime2687219
    Legend
    February 1, 2023

    Hmm... the actions here are not complex so I suspect something a bit more subtle going on.

    In general - I might approach it this way. At least this is how I imagine your setup

     

    OnEnter Action

    button2 disable
    button3 disable
    button4 disable
    button5 disable
    button6 disable

     

    Button1 Action

    button2 enable

    button1 disable (not sure if you want this)

    change state of object1

     

    Button2 Action

    button3 enable

    button2 disable

    change state of object1 (not sure if object is same or different)

     

    Button3 Action

    button4 enable

    button3 disable

    change state of object1

     

    Button4 Action

    button5 enable

    button4 disable

    change state of object1

     

    Button5 Action

    button6 enable

    button5 disable

    change state of object1

     

    Button6 Action

    button6 disable

    change state of object1

    rsauchuckAuthor
    Known Participant
    February 1, 2023

    Yes Stagprime, this is how I had set up the advanced actions. Slide OnEnter disabled button 2 through 6. Each button had its own advanced action that changed the state of my "reveal" object (6 states plus Normal), set a variable to show it was clicked, and SHOULD have Enabled the next SSB. However I did not disable any of the previous SSBs.

    I ended up doing a work around. Instead of disabling and then enabling the next button in the series, I added a conditional statement that just checked to see if the previous button have been clicked (if variable_btn01 = 1,  then do the stuff when btn02 is clicked)

    rsauchuckAuthor
    Known Participant
    February 1, 2023

    Since you ignored my pleading to post screenshots, I left this thread. 

    The fact that you took out the pausing points of all the buttons may be at the origin of the issues, since the Next button (which perhaps has pausing point) is hidden. How do you pause the slide when there is no pausing point? Understanding the timeline and the importance of pauses is so basic...

    I am also suspicious about the labeling: what is S0410 in the expression? How did this variable get its value? 

    With the described setup you didn't need so many variables, a simple counter may have done the trick, since you disable a button which has been clicked. Even that one can be unnecessary because you have an imposed sequence for the button clicks. 

    This blog has over 70K views, which is not astonishing:

    https://blog.lilybiri.com/pausing-captivates-timeline

     


    I did not "take out" the pausing points after the issue started, I took them out as soon as I converted teh SS to a button. There are no pause points on any elements except for the fact that the slide is paused with the Captivate hack of adding in a hidden click box to stop it from automatically contuing to the next slide.

    .

    I am using a client supplied template (it's awful but I have to use it as part of the project requirements) It has a custom UI and part of the the AA for the UI checks whether a string corresponding to the current slide (in this case S0410) has already been added to a "_visited" variable. If so the slide is noted as haven been previously completed and the UI updates appropriately

     

    Finally, I was not replying to you but to Stagprime. I generally find your comments to be rude and condescending ("Understanding the timeline and the importance of pauses is so basic...") so I perfer not to interact with you. Sorry.

    Lilybiri
    Legend
    February 1, 2023

    To allow a better view of the problem, please insert screenshots of:

    1. Advanced Interaction panel (F9) of this slide. Make sure to extend the width of the Success and Failure columns, and to expand the slide so that the actions on the shape buttons are visible.
    2. Timeline of the slide, to see the pausing points of all the shape buttons.
    3. Advanced actions used On Enter and for the Shape buttons, Success events. If you have an action with conditional decisions, please prefer the Preview window for the actions to post.You open that window using this button:
    RodWard
    Community Expert
    Community Expert
    February 1, 2023

    This sort of problem is usually due to some logic flaw in the way you have implemented your Advanced Actions.  You would normally need a separate Advanced Action created for each button.

     

    Are you able to show us screenshots of how you set up the Actions?