how to disable auto selection of first field in detail view

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

how to disable auto selection of first field in detail view

Post by aarlauskas » 2020-02-22 16:00

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

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: how to disable auto selection of first field in detail view

Post by jsetzer » 2020-02-22 16:08

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
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
aarlauskas
Veteran Member
Posts: 127
Joined: 2019-04-28 18:03
Location: Medway, UK

Re: how to disable auto selection of first field in detail view

Post by aarlauskas » 2020-02-22 16:27

You are Star! Thanks Buddy.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: how to disable auto selection of first field in detail view

Post by jsetzer » 2020-02-22 16:28

Awesome! Thanks for feedback!
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply