PennController for IBEX › Forums › Support › Catch Trials › Reply To: Catch Trials
June 5, 2020 at 9:59 am
#5598

Keymaster
Hi Nickolas,
You can replace this bit of code from the documentation:
new DynamicElement( "Message", { html: "<p>Pause</p>", transfer: 1000 }, true )
with this:
new DynamicElement( "PennController", newTrial( newButton("Hello world").print().wait() ), true )
You can code the newTrial as you would any regular PennController trial
Jeremy