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: Analyzing performance issues using the page inspector

Hi, Readers.Today I would like to share another mini tip about Business Central, how to analyze performance issues using the page inspect...

22 hours ago

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

Cumulative Update (January, 2026) for Microsoft Dynamics 365 Business Central is now released. BC27: CU03 Cloud (SaaS): Managing Production an...

2 days ago

Dynamics 365 Business Central: How to get the Month Name/Text from a date (Two ways)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to get the Month Name/Text from a date. For example,...

4 days ago

Dynamics 365 Business Central: Add a Scan Barcode action and scan multiple/Continious scanning (Invoke barcode scanning programmatically from AL)

Hi, Readers.Today I would like to talk about how to add a Scan Barcode action and scan multiple/Continious scanning in Business Central S...

5 days ago

Dynamics 365 Business Central: How to add Notes (System Parts) from FactBox to a report

Hi, Readers.Today I’d like to briefly discuss a question I saw on the Business Central Forum last week, How to add Notes from FactBox to...

6 days ago

Dynamics 365 Business Central: Cancelling a scheduled PTE update install (Next Major/Next Minor)

Hi, Readers.Today I would like to briefly talk about the question I saw in the Business Central forum, Cancelling a scheduled app update insta...

7 days ago

Dynamics 365 Business Central: Version Data Type (Major.Minor.Build.Revision)

Hi, Readers.Today I would like to talk about what is Version Data Type and how it is used in Business Central. If you’re an end-user, ve...

11 days ago

Dynamics 365 Business Central: Make sure to generate the permission set file before installing your extension

Hi, Readers.Today, I’d like to briefly share an issue I was asked about recently: Why can’t users other than Super users see customized featur...

12 days ago

Dynamics 365 Business Central: To automatically delete archived versions (For example, have 10 versions and want to keep a copy of the latest)

Hi, Readers.Today I’d like to briefly talk about how to automatically delete archived versions (For example, have 10 versions and want to keep...

13 days ago

Dynamics 365 Business Central: Quickly check the current filters used on the current page via Page Inspection

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly check the current filters used on the cur...

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