JS function to set the cursor focus to a structure array field.

does any one know of JS function to set the cursor focus to a field?

  • I'm using the below statement and it's not working;


  • the field name should literally match what you have specified as the input for the widget you want to recieve the focus.

    For example if I added a text widget to the format "ScriptLibrary' with an input of $f.x then went to the SriptLibrary and created a new entry called testit with this content:


    when I Add, Compile then Execute the focus should jump to the new input field we just added.

    You do not need the 'vars.' prefi since even though you are in JS, the value you are using is a literal in double quotes so you do not need to use the 'vars.' prefix.