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: Open the same list in a new tab when switching companies

Hi, Readers.Today I would like to share another mini tip about Business Central, how to open the same list in a new tab when switching compani...

1 hour ago

What is Microsoft Dynamics 365 Business Central? A Complete Beginner’s Guide (2026)

In today’s competitive business environment, companies need an intelligent solution to manage their finances, sales, inventory, purchasi...

19 hours ago

Dynamics 365 Business Central Cloud: Production vs. Sandbox Environments – Key Differences

Hi, Readers.Today, I’d like to discuss a question I’ve been asked recently: what are the main differences between a Business Central productio...

1 day ago

Business Central 2026 release wave 1 (BC28): Copilot and agent data movement across geographies

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

2 days ago

Dynamics 365 Business Central Blog Series: Item Attributes

Articles in this series: Show Item Attributes on the page (For Example: On Item List page) Show Item Attributes on the page (For Example: On I...

2 days ago

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

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

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

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

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