- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2015 01:38 PM
I have successfully used g_tabs2Sections.setActive(X); to highlight/activate a section in a form from (1) an onChange client script and (2) from a UI action button,
but the customer wants the users cursor to be placed in that section also. Can we do that ? Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2015 03:24 PM
I think you would just have to set the focus to be the first field in the section. Unfortunately, I'm not aware of a great way to automatically get the first field in the section so you'd have to hardcode the field name. Something like this:
g_form.getControl('fieldname').focus();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2015 03:24 PM
I think you would just have to set the focus to be the first field in the section. Unfortunately, I'm not aware of a great way to automatically get the first field in the section so you'd have to hardcode the field name. Something like this:
g_form.getControl('fieldname').focus();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2015 08:02 AM
Thank you !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2015 06:50 AM
I thought I had this working last week.
Since then that environment was cloned over from production.
When I recreate it no longer works - in chrome or firefox.
I can activate the section - but the cursor is not going to the "focus" field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2015 10:24 AM
I found the prolem, which I corrected. the "focus" is working as desired - my cursor goes straight to the specified field. Thanks again !