You are viewing limited content. For full access, please sign in.

Question

Question

tab order on form when date is selected using the date date picker

asked on March 17, 2017 Show version history

On Forms when I use the date picker on a date field to select the date and then tab out of the date the focus automatically moves to the address bar when in Chrome- On IE it moves focus to the first field.  Is there a way around this behavior?  Is it possible to disable the date picker all together if there is not a better work around.  We want to be able to tab through the form while keeping logical focus. I am using Laserfiche Forms Version 10.2.0.789

Thank you in advance!

Terri

1 0

Answer

SELECTED ANSWER
replied on March 17, 2017 Show version history

Hi Terri,

I can reproduce the issue and have passed this on to the development team. Based on the behaviors among different browsers, it seems that the tab order is being decided based on the rendering of the date picker, and so it's possible that this might not be able to be changed; we can try to look into at least making the behavior consistent. (I haven't tested extensively to see if it behaved the same in other versions of Forms.)

However I do have good news, you can use the following jQuery snippet to fix this:

$(document).ready(function() {
  $('input.hasDatepicker').on('change',function() {$(this).focus();});
});

With this code, every time a Date field (precisely, every input element that has an associated date picker) changes value, the browser focus will be forced to that input field. The tab order should then proceed as though the value had been entered without using the date picker.

Hope this helps!

2 0
replied on March 17, 2017

Thank you James- that worked beautifully!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.