Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] How set focus to input field on popup?

$
0
0

Hi,

In our mobile app there is a popup with input field. I would like that field to be on focus when popup opens. I was trying to set using JS Node with this code:

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

passing input widget id as an input parameter. However when the code fires after showing the popup there is an error in console "null is not an object...". The id is sent properly (I have it in console output) and running code in console manually when the popup is displayed works correctly. I suspect there is a delay in popup displaying and running next node.

I managed to overcome this issue by adding the web-block to popup and run JS on its OnReady event but I was wondering is it the best way to do it or there is a popup parameters or related actions that I might be missing?


Thank you.



Viewing all articles
Browse latest Browse all 1476385

Latest Images

Trending Articles



Latest Images