Browser cursor selection
Posted: Mon Dec 06, 2021 4:23 pm
When a user types in data into a field, I want to update the information that was entered before going to the next field.
I have pressKey("Enter", true); on the ONCHANGE properties. The issue is that when it updates, it comes back and the cursor is no longer on the next field but yet has gone back to the first tab and the first field.
I tried
On the screen
ONLOAD var lastTab = sessionStorage.getItem("MYSCREEN_LASTTAB");
if (lastTab) {setTab("TabPanel1", lastTab)}
On the Tab
ONTABCLICK sessionStorage.setItem("MYSCREEN_LASTTAB", tab);
This didn't work. When the update happens, it still comes back to the first tab on the first field.
How can I get the cursor to return to the next field just as a tab?
I have pressKey("Enter", true); on the ONCHANGE properties. The issue is that when it updates, it comes back and the cursor is no longer on the next field but yet has gone back to the first tab and the first field.
I tried
On the screen
ONLOAD var lastTab = sessionStorage.getItem("MYSCREEN_LASTTAB");
if (lastTab) {setTab("TabPanel1", lastTab)}
On the Tab
ONTABCLICK sessionStorage.setItem("MYSCREEN_LASTTAB", tab);
This didn't work. When the update happens, it still comes back to the first tab on the first field.
How can I get the cursor to return to the next field just as a tab?