Skip to main content
Participant
August 17, 2016
Answered

States -Timing

  • August 17, 2016
  • 3 replies
  • 223 views

Does anyone know if you can time the state to return back to the normal state after X seconds?

Once the learner clicks on the button that changes the state, I want to be able to return back to the normal state but once you are in state view you cant add a button and there doesnt appear to be a way to time it.

Ideas?

This topic has been closed for replies.
Correct answer MS554763

I have not tested this and I'm not sure about the terminology, since I'm not using the English version of Cp, but I think it should work:

Set up an advanced action and use it on your button:

          Change state of button to ...

          Delay next action by X seconds

          Change state of button to normal

In our projects the learner usually has to click the button a second time to return to normal state. You could give visual hints with +/- symbols on the button. But this is without timing of course.

3 replies

Lilybiri
Legend
August 17, 2016

No, change of state can only be triggered by an event. I am just busy

writing a blog post about using a hyperlink to close pop-ups or a lightbox.

Maybe that could be a solution?

MS554763Correct answer
Participant
August 17, 2016

I have not tested this and I'm not sure about the terminology, since I'm not using the English version of Cp, but I think it should work:

Set up an advanced action and use it on your button:

          Change state of button to ...

          Delay next action by X seconds

          Change state of button to normal

In our projects the learner usually has to click the button a second time to return to normal state. You could give visual hints with +/- symbols on the button. But this is without timing of course.

Lilybiri
Legend
August 17, 2016

You have to be very careful with Delay command, it may work if nothing else happens, like pressing a button, pausing etc. 

Lilybiri
Legend
August 17, 2016

I answered by mail, but it has not appeared here.

You cannot have a return to a normal state automatically, it has to be triggered by an event (or you could use one of the funcitionalities of theCpExtra widget by InfoSemantics, which you have to buy separately).

However I am just busy writing another blog post, where I propose to use a hyperlink to change a state or to close a popup/lightbox. Maybe this could be a workaround?