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

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

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

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

3 days ago

Cumulative Update Summary for Microsoft Dynamics 365 Business Central (December, 2025)

Cumulative Update (December, 2025) for Microsoft Dynamics 365 Business Central is now released. BC27: CU02 Cloud (SaaS): Managing Production a...

4 days ago

From Business Central to SharePoint: The Right Way to Save PDF Files in Power Automate

If you’re pulling PDF files from Microsoft Dynamics 365 Business Central and saving them to SharePoint using Power Automate, there’s one criti...

15 days ago

Dynamics 365 Business Central: How to automatically archive sales orders via AL (For example, Archive on Order Release)

Hi, Readers.Today I’d like to briefly talk about how to automatically archive sales orders via AL. In Business Central, you can archive sales,...

15 days ago

Dynamics 365 Business Central: Regarding the issue where the Source Currency Amount in G/L Entry differs from the pre-posting Amount in BC27

Hi, Readers.Today I’d like to share a question that came up yesterday, regarding the issue where the Source Currency Amount in G/L Entry...

16 days ago

Dynamics 365 Business Central: Uninstall apps from Admin Center

Hi, Readers.Today I would like to share another mini tip about Business Central, how to uninstall apps from Admin Center. When an app is no lo...

17 days ago

Dynamics 365 Business Central: Black Friday 1K AI Power-Up campaign (Free copilot credits)

Hi, Readers.I would like to share a piece of information today, Business Central Black Friday 1K AI Power-Up campaign.This message was posted ...

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