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: Why can’t a Super User create a new Company

Hi, Readers.Today I would like to briefly talk about a qustion I saw in the Dynamics 365 Community before, why can’t a Super U...

1 day ago

Dynamics 365 Business Central: How to merge multiple lots (Lot No.) into one

Hi, Readers.Today I would like to talk about how to merge multiple lots into one in Business Central. Keep track of inventory items, even in c...

2 days ago

Business Central 2026 release wave 1 (BC28): New Resize button (action)

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

3 days ago

Business Central 2026 release wave 1 (BC28): Quality Management module (Evaluate the quality of goods and materials)

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

4 days ago

Business Central 2026 release wave 1 (BC28.1): Use enhanced and faster reports for analysis of deferrals and trial balances

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

5 days ago

Dynamics 365 Business Central: How to download Microsoft partner materials (Resource library)

Hi, Readers.Today, I’d like to briefly share the latest method for downloading Microsoft partner resources. Recently, I was asked what t...

8 days ago

Dynamics 365 Business Central: Hide and show list views

Hi, Readers.Today I would like to share another mini tip about Business Central, how to hide and show list views. As you know, when you have s...

9 days ago

Business Central 2026 release wave 1 (BC28.1): Enable Investment Boost for fixed assets (Bonus Depreciation Method)

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

10 days ago

Business Central 2026 release wave 1 (BC28): Calculate excise taxes

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

11 days ago

Business Central 2026 release wave 1 (BC28): Analyze customer loyalty and other sales scenarios

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

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