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

Dynamics 365 Business Central: How to record extra serial or lot number information (Item Tracking Comments)

Hi, Readers.We discussed Automatically create Lot/Serial No. Information card on posting (No customization) before, today I’d like to sh...

1 hour ago

Information sharing: SQL Server 2025 is now GA – Business Central to Support it in 2026 Release Wave 1 (BC28)

Hi, Readers.I would like to share a piece of information today, at Ignite, Microsoft announce the general availability of SQL Server 2025. Thi...

1 day ago

Same Power, New Look: Microsoft Dynamics Business Central Wallpapers

Microsoft Dynamics Business Central has always stood for innovation, reliability, and business empowerment. With the introduction of the new l...

1 day ago

Dynamics 365 Business Central Blog Series: Customize the Role Center

Articles in this series: How to customize the Role Center in AL How to customize the Role Center in AL OnAction trigger on Role Center pages (...

2 days ago

Dynamics 365 Business Central: How to show Experience Tier (Essential or Premium) on the Companies (list page)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to show Experience Tier (Essential or Premium) on the Com...

3 days ago

Dynamics 365 Business Central: How to determine whether the current environment is Sandbox or Production

Hi, Readers.Today I would like to briefly share a question that I was asked recently, how to determine whether the current environment is Sand...

4 days ago

Business Central 2025 wave 2 (BC27.1): Demo analytics with new enhanced demo data

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

7 days ago

Business Central 2025 wave 2 (BC27.1): Use the Account Payable Role Center

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

8 days ago

Business Central 2025 wave 2 (BC27.1): Print the Audit Trail report (report 330 “Audit Trail”)

Hi, Readers.Dynamics 365 Business Central 2025 wave 2 (BC27.1) is generally available. More details: Cumulative Update Summary for Micros...

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