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

Standardizing Finance Operations with Dynamics 365 BC

Growth through acquisition creates opportunity, but it also introduces operational complexity. As private equity firms expand their portfolios...

1 day ago

Dynamics 365 Business Central: How to quickly identify the first transaction date and the number of days since the last sale with a customer

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly identify the first transaction date and the nu...

2 days ago

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

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

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

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

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

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

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

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