set mandatory widget focus on mobile

set mandatory widget focus on mobile

  

hi,


how can i auto focus the mandatory widget in mobile ?


thanks

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

document.getElementById($parameters.InputId).focus();

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