-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUDI-6580] Autofocus Input - Add setting to form block/form to autofocus on page open #9699
Comments
@shogunpurple @melohagan Guys i am a newbie, so can u tell me how to set up this project after performing a git clone? |
I too would like to do this. Helps the flow if you have to input the form multiple times in a day like logging time tickets, units shipped, problems/issues, etc. |
Hey @EmCmEdT This should be possible with the Scroll To Field action: https://docs.budibase.com/docs/form-actions#scroll-to-field |
@melohagan I meant the field is active for typing as if you mouse clicked into that field. |
@EmCmEdT when the scroll to field action is used, it will also auto focus that field for you to start typing, at least for text inputs. The barcode scanner input may work a bit differently. |
Thank you, @melohagan . How would I do this on page load? It doesn't seem to be working when adding the action to the "Screen" on screen load actions, so I assumed the function only scrolled, given how short my form was. However, I just tried a resize, and I realize it didn't work at all. Perhaps you can't snap to a field if it isn't loaded yet? |
Hey @EmCmEdT It may not be possible on page load, perhaps the form fields haven't loaded yet before the action triggers. What I have done in the past is add it to a multi-step form. When you click the "Next step" button, the fields will have loaded by that point and will scroll into focus. |
Discussed in #9652
Originally posted by Hystarea February 10, 2023
I am looking for a way to autofocus a text field input when a page is loaded. The purpose of this is to make searching an internal Budibase db quicker.
BUDI-6580
The text was updated successfully, but these errors were encountered: