How to set the focus i.e.,cursor to a field

Community Alums
Not applicable

Hi all,

I have written an onchange where we an certain condition meet it need to show an alert and then cursor has to move to a certain field. I have used g_form.getControl('field_name').focus(); and also g_form.getControl('field_name').scrollIntoView() but both the things are not working i have make the isolate script as false as well true even then it doesnt work. Can anyone help me how to resolve these issue.

5 REPLIES 5

1__JAMES
Tera Contributor

firehouse subs fries introduced crispy, golden French fries available in three sizes: Small (350 calories), Medium (520 calories), and Large (730 calories). These fries are perfectly seasoned and make a delicious side to complement any sub. Made from potatoes, vegetable oil, salt, cornstarch, dextrose, and natural flavoring, they contain wheat and soy allergens and are not gluten-free.