PennController for IBEX › Forums › Support › Two-screen trials? › Reply To: Two-screen trials?
April 8, 2020 at 12:17 pm
#5020
Jeremy
Keymaster
Hi,
Simply use the .remove command on the Text elements that you no longer want on the new screen. It’s easier if you give them a name first, like this:
Template( variable => newTrial( "experiment" , newTimer(500) .start() .wait() , defaultText .print() .center() , newText("sentence", variable.sentence) // named your Text element 'sentence' , newText("pressspace" , "Press the spacebar to continue.") // named your Text element 'pressspace' .css("margin-top", "2em") // cleaner than 3 br's .italic() , newKey(" ") .wait() , getText("sentence").remove(), // remove your Text elements getText("pressspace").remove() // here , newText("Press Enter to submit your answer.") .css("margin-bottom", "2em") // same thing as above .italic() , newText("question", variable.question) , newTextInput("inputanswer") .print() .log() .wait() , newVar("answer") .global() // I suspect you want to make this global so you can use it in another log below .set( getTextInput("inputanswer") ) ) // this parenthesis should be here .log( "SubjID" , getVar("ID") ) ) // this one remains here
Jeremy