Page 1 of 1

Tabbing through subfile option field with wrapping

Posted: Tue Sep 17, 2019 7:49 am
by BFoster
I have an application with the requirement to keep the users off the mouse as much as possible. The app is a high volume data entry program and tabbing is important. The application has a subfile with a single field that is input capable - the subfile option field. Assigning the tab index of 1 to this field propagates down through the rest of the subfile records as expected. When the tabbing gets out of the subfile it lands on the first button with tab index of 2 and then into the next and final button with tab index of 3. After that I need to get the tabbing to "wrap around" back into the subfile option field on the first record of the subfile. As it is now, the tabbing gets out of the form and into the browser. To solve this, I think in terms of getting the subfile record format to obtain the grid to set focus on the subfile option field but apparently this isn't possible. Any ideas?

Re: Tabbing through subfile option field with wrapping

Posted: Tue Sep 17, 2019 8:24 am
by DavidBal
Hi,

you can put some little javascript to the onblur event of your button with the last tab index.
document.getElementById("IDofTextboxinSubfile" + ".1").focus();

Hope this helps!

David

Re: Tabbing through subfile option field with wrapping

Posted: Tue Sep 17, 2019 10:54 am
by BFoster
Clever. That worked. Thanks!

Re: Tabbing through subfile option field with wrapping

Posted: Tue May 26, 2020 3:46 am
by paksilv
DavidBal wrote:Hi,

you can put some little javascript to the onblur event of your button with the last tab index.
document.getElementById("IDofTextboxinSubfile" + ".1").focus();

Hope this helps!

David
Hi, does it still run if the next field is a combo box?

Re: Tabbing through subfile option field with wrapping

Posted: Tue May 26, 2020 10:38 pm
by Scott Klement
You might do something like the following (off the top of my head, untested):

Code: Select all

var box = getObj("IDofTextboxinSubfile" + ".1");
if (box && box.comboBoxWidget) {
   box = box.firstChild;
}
box.focus();