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
  • 984 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)

    Stagprime2687219
    Legend
    February 1, 2023

    This setup does not need a variable to track anything.

    If one must click button1 to enable button2 - then actually clicking the button is all the more tracking we need.

    As soon as it is clicked - enabling the next button is part of the success action.

     

    Any errors in the action setup would break the action so I might suggest pulling out the variable tracking unless that is needed for some other thing later.

     

    Lilybiri mentioned seeing the timeline to check for pause points... I would not normally see this issue myself as I do not make use of the timeline as many do. I keep mine in a constant state of pause and drive events based on learner interaction but this is a common gotcha and worth investigating.

    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?