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: To automatically delete archived versions (For example, have 10 versions and want to keep a copy of the latest)

Hi, Readers.Today I’d like to briefly talk about how to automatically delete archived versions (For example, have 10 versions and want to keep...

1 day ago

Dynamics 365 Business Central: Quickly check the current filters used on the current page via Page Inspection

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly check the current filters used on the cur...

2 days ago

Dynamics 365 Business Central: How to use Open in Excel in the browser/web (Excel Online)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to use Open in Excel in the browser/web (Excel Online). W...

2 days ago

Automate Order Processing: Connect Dynamics 365 CRM & Business Central with Co-pilot Sales Order Agent

Imagine you run a business that gets dozens or hundreds of order requests via email every day from new clients or repeat customers. Normally, ...

14 days ago

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...

16 days 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 ...

17 days 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...

20 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...

20 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...

21 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...

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