Reply To: How to add a "come back" button to the practice trial

PennController for IBEX Forums Support How to add a "come back" button to the practice trial Reply To: How to add a "come back" button to the practice trial

#7278
Lorrainy
Participant

Hey Jeremy and Larissa!

I was in need of that action as well and I saw this forum open.
So, I tried the codes and same thing happened to me. The trial ended without even showing the one with the callback function.

After many attempts I got this and IT WORKED!! (This is based on my experiment though)

newButton("botao6", "Voltar")
    .callback(jump("pratica1", end()))
    .center()
    .cssContainer({"margin-bottom":"1em"})
    .print()
    ,
    newButton("botao7", "Seguir")
    .center()
    .cssContainer({"margin-bottom":"1em"})
    .print()
    .wait()
);

So, the problem was on the order of the parenthesis at the .callback action.

HOWEVER, If the participant wants to practice again he has to press the button entitled “Voltar” and after that, also press the one with the name “Seguir”. And if he doesn’t needs another practice he only has to press the “Seguir” one. Did it make sense?

I’m still trying to make the buttom “”Voltar” work alone, without having to press the other one as well…

Here’s my link at the moment: https://farm.pcibex.net/r/WzOKfG/

Thanks Jeremy for the tips, I’m loving it