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 Blog Series: Work with dimensions

Articles in this series: How to add Shortcut Dimensions on the page (Shortcut Dimension 3 ~ 8) How to add Shortcut Dimensions on the page in D...

6 hours ago

Dynamics 365 Business Central: All Copilot and agent capabilities

Hi, Readers.Today, I’d like to provide a brief overview of the Copilot and Agent features currently available in Business Central. Copilot is ...

1 day ago

Business Central 2025 wave 2 (BC27): Cancel running environment update

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

4 days ago

Dynamics 365 Business Central: How to check whether External Document No./Vendor Invoice No. are unique or duplicated – Customization

Hi, Readers.Today I would like to briefly share a question that I was asked recently, how to check whether External Document No./Vendor Invoic...

5 days ago

Can Dynamics 365 Business Central Online (SaaS) be used in Mainland China? (Is BC accessible from Mainland China?)

Hi, Readers.Today, I’d like to briefly discuss an issue that is of particular concern to Business Central users in mainland China, can Dynamic...

6 days ago

Downalod Microsoft Dynamics 365 Business Central icons (logos)

New Business Central icon: aka.ms/BCicon PDF: PNG: SVG: PS: README_Information about usage rights Old Business Central icon: Microsoft Dynamic...

7 days ago

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

Cumulative Update (December, 2025) for Microsoft Dynamics 365 Business Central is now released. BC27: CU02 Cloud (SaaS): Managing Production a...

8 days ago

From Business Central to SharePoint: The Right Way to Save PDF Files in Power Automate

If you’re pulling PDF files from Microsoft Dynamics 365 Business Central and saving them to SharePoint using Power Automate, there’s one criti...

18 days ago

Dynamics 365 Business Central: How to automatically archive sales orders via AL (For example, Archive on Order Release)

Hi, Readers.Today I’d like to briefly talk about how to automatically archive sales orders via AL. In Business Central, you can archive sales,...

19 days ago

Dynamics 365 Business Central: Regarding the issue where the Source Currency Amount in G/L Entry differs from the pre-posting Amount in BC27

Hi, Readers.Today I’d like to share a question that came up yesterday, regarding the issue where the Source Currency Amount in G/L Entry...

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