Bringing the Access 'Set.Focus' Logic to Knack: A Data Entry Enhancement

Hi everyone,

I’ve been developing in Knack since 2016, and if there is one thing that still bugs me, it’s having to manually click into a field every time a modal or page loads. When you are doing high-volume data entry, those extra clicks really add up!

I’m the first to admit I’m not a “pro coder”—I’m a legacy VB / Microsoft Access guy at heart . Back in the day, we just used Set.Focus, but it’s a bit more “involved” in a web environment.

I’ve put together a short video showing a workaround to automatically set the focus to any field when a form renders or after a record is submitted.

Important Note: This solution is specifically for Knack Classic.

The Secret Sauce: jQuery Selectors The trick is using specific jQuery selectors to find exactly where the cursor needs to land. This is easy for standard fields, but gets tricky with complex ones. In the video, I show how.

There’s likely a more ‘pro’ way to update this universally, but this method works every time. Not bad for an old guy with a bit of help from AI! :wink: