How do I auto-select/auto-focus a section when I click an UI Action or onSubmit C/S?

salvadormarchan
Kilo Guru

Hi,

How do I auto-select/auto-focus a section when I click an UI Action or onSubmit client script?

I have tried using focus() and select() on the target field but it is not showing when the section form is not selected.

Please help....

Thanks,

Dor

1 ACCEPTED SOLUTION

Slava Savitsky
Giga Sage

To switch to a particular form section (tab), use the following client-side code:



g_tabs2Sections.setActive(X);



where X is the number of the section (tab).



For more information on how to deal with form tabs in scripts, have a look at this blog post:


Demystifying form tabs | SNOWman's Blog


View solution in original post

7 REPLIES 7

Slava Savitsky
Giga Sage

To switch to a particular form section (tab), use the following client-side code:



g_tabs2Sections.setActive(X);



where X is the number of the section (tab).



For more information on how to deal with form tabs in scripts, have a look at this blog post:


Demystifying form tabs | SNOWman's Blog


Hi Slava,


You are amazing!!!!! Thank you.....


Dor


Salvador, I am glad to hear my answer was helpful. Lots of other tips and tricks will be appearing in my blog soon. Feel free to subscribe to it and be the first one to take advantage of all the cool stuff that will be posted there.


How to get the number of section(tab)