set mandatory widget focus on mobile


how can i auto focus the mandatory widget in mobile ?


Hi Tobit,

When do you want to "auto focus" the input? When you enter the screen?

On your mandatory input create an extended property called "autofocus" with value "autofocus". 

Hi Joao,

after click save button, if mandatory input empty, then it will autofocus to the widget.

Ok, then create a JS node with the following code


and pass the id of the input widget to the JS node.

Found a solution for this, just give the widget you want to set focus an extra attribute : 

autofocus = "autofocus" and it will get the focus