Reply To: Presentation issue in an experiment

PennController for IBEX Forums Support Presentation issue in an experiment Reply To: Presentation issue in an experiment

#10476
Jeremy
Keymaster

Hi,

Focus automatically goes to the most recently added TextInput element. If you want to give focus back to the first TextInput element and scroll back to the top of the page at some point, you can execute some javascript code using the Function element (before you create and print the Button element for example):

newFunction( ()=>{
    window.scrollTo(0,0);
    document.querySelector(".PennController-TextInput.PennController-alter").focus();
}).call()

Jeremy