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 2026 release wave 1 (BC28): Show Currency Symbol/Code and Currency Symbol Position

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

44 minutes ago

Dynamics 365 Business Central: How to simply back up and transfer your workflows to another environment

Hi, Readers.Today I would like to share another mini tip about Business Central, how to simply back up and transfer your workflows to another ...

21 hours ago

Dynamics 365 Business Central: Is it possible to change the Variant Code for an item that has already been posted?

Hi, Readers.Today I would like to briefly talk about a qustion I saw in the Dynamics 365 Community before, is it possible to change ...

2 days ago

Dynamics 365 Business Central: Formatting Boolean Values (Yes/No, true/false, and 1/0)

Hi, Readers.Today I would like to share another mini tip about Business Central, formatting Boolean Values (Yes/No, true/false, and 1/0). In D...

3 days ago

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

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

4 days ago

Dynamics 365 Business Central: How to add Filter by item attributes to the Item Ledger Entries page

Hi, Readers.Today I would like to talk about how to add Filter by item attributes to the Item Ledger Entries page. Let’s take a look at item a...

6 days ago

Dynamics 365 Business Central: How to add Item Attributes Factbox (9110, ListPart) to Item Ledger Entries page

Hi, Readers.Today I would like to talk about how to add Item Attributes Factbox (9110, ListPart) to Item Ledger Entries page (Displaying Item ...

8 days ago

Business Central 2026 release wave 1 (BC28.2): Change AI models for agents in the UI

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

9 days ago

Business Central 2026 release wave 1 (BC28.2): Use new APIs for analyzing approval workflows for auditors and IT staff

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

10 days ago

Business Central 2026 release wave 1 (BC28.2): Use new APIs for analyzing permissions for auditors and IT staff

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

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