Hi, 


I would like to when clicking on an icon with a link I can set a focus on an input widget. I'm trying to use javascript to achieve that. However, I'm not able to get the element id of the input field to select it. Anyone know a way to achieve this?

I would like to click on the pencil icon then focus on the grayed field (C). 

I already tried that: 

    document.getElementById(C.id).focus();


Thank you!

You are almost there ;) 

"document.getElementById( "+ C.id + ").focus();"

When C is the name of your input widget in Outsystems.

Stefano Valente wrote:

You are almost there ;) 

"document.getElementById( "+ C.id + ").focus();"

When C is the name of your input widget in Outsystems.

I'm facing an issue then I do that, it shows that my name of the input is not defined. Do you know how to solve that?


Thanks for the reply,