Loading...

How to set focus on fields using Javascript in Business Central

How to set focus on fields using Javascript in Business Central
Heres an example of how to set field focus in Business Central using one line of Javascript. Setting focus on fields can be useful for example when using barcode scanners or doing some other quick data entry. This example extends sales order lines and after entering the Item No. focuses on Quantity and after quantity focuses on Unit Price etc. Al Code: pageextension 50100 "Ext. Sales Order Subform" extends "Sales Order Subform" { layout { addlast(content) { usercontrol(SetFieldFocus; SetFieldFocus) { ApplicationArea = All; trigger Ready() begin CurrPage.

Published on:

Learn more
Posts on Microsoft Dynamics 365 Business Central Development
Posts on Microsoft Dynamics 365 Business Central Development

Recent content in Posts on Microsoft Dynamics 365 Business Central Development

Share post:

Related posts

Business Central 2025 wave 1 (BC26.3): Chat with Copilot to learn how to use installed add-on apps

Hi, Readers.Dynamics 365 Business Central 2025 wave 1 (BC26) is generally available. More details: General Available: Dynamics 365 Busine...

2 days ago

Dynamics 365 Business Central: How to show more than 999+ in Cue on Role Centers (Show actual numbers instead of 999+)

Hi, Readers.Today I would like to talk about how to show more than 999+ in Cue (Show actual numbers instead of 999+). This is an interesting q...

3 days ago

Business Central 2025 wave 1 (BC26.3): Automate payables processes with the Payables Agent

Hi, Readers.Dynamics 365 Business Central 2025 wave 1 (BC26) is generally available. More details: General Available: Dynamics 365 Busine...

4 days ago

Cumulative Update Summary for Microsoft Dynamics 365 Business Central (July, 2025)

Cumulative Update (July, 2025) for Microsoft Dynamics 365 Business Central is now released. BC26: CU03 Cloud (SaaS): Managing Production and S...

5 days ago

Dynamics 365 Business Central: How to quickly remove white-space characters from the current Text/String (leading, trailing and all) in AL

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly remove white-space characters from the current...

8 days ago

Dynamics 365 Business Central: Copy Sales and Purchase Line Descriptions (Type G/L Account) to G/L Entries

Hi, Readers.Today I would like to talk about how to copy Sales and Purchase Line Descriptions (Type G/L Account) to G/L Entries in Business Ce...

9 days ago

Boost Dynamics Business Central with Private AI: Automated Invoice Processing

Introduction Manual invoice entry is nobody’s favorite part of BC activities. But what if you could hand off that grunt work to your own AI—on...

9 days ago

Dynamics 365 Business Central: How to quickly check if a Url is secure (Use https) via AL

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly check if a Url is secure (Use https) via AL Hy...

10 days ago

Dynamics 365 Business Central Blog Series: Integrate with Microsoft Dataverse

There are currently three methods available:1. Using the standard Dataverse connector (The synchronization between Dataverse and Business Cent...

12 days ago

Dynamics 365 Business Central Blog Series: Adding Barcodes

Articles in this series: Use one-dimensional barcodes in reports Use one-dimensional barcodes in reports (Business Central online) Using 2D ba...

12 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy