Input_SetFocus for Mobile App

Input_SetFocus for Mobile App

  

Mobile App: Can I get some guidance on how to set focus to designated input field on page load?

Am I missing something because I cannot add Rich Widget dependency to a Mobile App module as they are greyed out, which have the Input_SetFocus widget.




Solution

Hi Marcus,

Richwidgets is a web module, thus it can't be added to a mobile module.

Set the autofocus extended attribute on the input:


Solution

Thanks for that, it solves my original problem. Now, I am thinking of applying that to another purpose like below but does not seemed to work (I am trying no focus on any inputs if condition is false). I understand that maybe autoFocus actually do not have true/false when used in CSS. Any suggestions?

Try with empty string ("") instead of false