9
Views
1
Comments
Solved
How to define where the cursor is when I enter a page
Application Type
Traditional Web
Service Studio Version
11.10.3 (Build 36680)

Hello everyone,


I'm trying to put the cursor on a certain input right after I open the page. I tried to do this using some JS code but I was not able to make it work. Can you help me?


Thank you, 

Tiago

Rank: #95
Solution

Hello Tiago,

Hope you're doing well.

Maybe you can try to use SetFocus action instead:


You just need to specify the WidgetId of the element that you pretend to set the focus.

In order to do that, you just need to fill the Name property of the input widget:


And after that you just need to pass the its Id as an input parameter:


Just use this SetFocus action in your Preparation and it should work as expected :)

Hope that this helps you!


Kind regards,

Rui Barradas