Page 1 of 1
how to disable auto selection of first field in detail view
Posted: 2020-02-22 16:00
by aarlauskas
Hello, does anyone know how to disable auto selection of first field in detail view? What happens is I have the date field as the first field on my form which displays current date, then second field is a text field. When adding new record I click on the second field and start typing, but soon as I start typing it automatically jumps to the date field and knocks the date out.. How to stop that please? I have uploaded that on youtube:
https://youtu.be/3_TrVvE2vmg Thanks
Re: how to disable auto selection of first field in detail view
Posted: 2020-02-22 16:08
by jsetzer
Hi,
it will be improved with next version, as far as I know.
This should help for now:
viewtopic.php?f=2&t=3335&p=12217#p11609
As a workaround we can overwrite the default behaviour by replacing the existing
focusFirstFormElement-function by a function doing nothing.
Code: Select all
AppGini.focusFirstFormElement = function() { /*noop*/ };
If necessary, you can also replace the function
per detail view with your own implementation.
Hope this helps! Can you please give feedback if this works for you.
Best,
Jan
Re: how to disable auto selection of first field in detail view
Posted: 2020-02-22 16:27
by aarlauskas
You are Star! Thanks Buddy.
Re: how to disable auto selection of first field in detail view
Posted: 2020-02-22 16:28
by jsetzer
Awesome! Thanks for feedback!