how to disable auto selection of first field in detail view
- 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
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
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.
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
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*/ };
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
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<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 readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
- 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
You are Star! Thanks Buddy.
Re: how to disable auto selection of first field in detail view
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
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<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 readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools