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: How to set Allow HttpClient Requests for multiple extensions (selected extensions) at the same time

Hi, Readers.Today I would like to talk about a question I saw this morning in the Business Central forums, how to set Allow HttpClient Request...

2 days ago

Dynamics 365 Business Central: How to change Due Date of posted documents

Hi, Readers.Today I would like to share another mini tip in Business Central, how to change Due Date of posted documents. Due date in Business...

3 days ago

Dynamics 365 Business Central: How to preview Word (.docx) in web client without downloading (No control add-in and APIs)

Hi, Readers.Today I would like to discuss an interesting topic, how to preview Word (.docx) in web client without downloading (No control...

4 days ago

Dynamics 365 Business Central: Why are customer pictures round and item pictures square?

Hi, Readers.Today I would like to discuss a simple topic, why are customer pictures round and item pictures square in the Business Central cli...

5 days ago

Dynamics 365 Business Central: Using Ask Learn (AI assistant) on Microsoft Learn (Technical documentation)

Hi, Readers.Today I would like to briefly share the Ask Learn feature in Microsoft Learn. As you might know, learning how to use Business Cent...

8 days ago

Dynamics 365 Business Central: How to change Zero (0) of Flowfield field to Dash (-) on the page

Hi, Readers.Today I would like to share another mini tip about Business Central, how to change Zero (0) of Flowfield field to Dash (-) on the ...

9 days ago

Business Central 2025 wave 1 (BC26.2): Use enhanced analytics for manufacturing (updated Power BI app)

Hi, Readers.Dynamics 365 Business Central 2025 wave 1 (BC26) is generally available. More details: General Available: Dynamics 365 Busine...

10 days ago

Business Central 2025 wave 1 (BC26.2): Implicit conversion between Record and RecordRef

Hi, Readers.Dynamics 365 Business Central 2025 wave 1 (BC26) is generally available. More details: General Available: Dynamics 365 Busine...

11 days ago

Business Central 2025 wave 1 (BC26.2): Add fields/columns from related tables in analysis mode (No customization)

Hi, Readers.Dynamics 365 Business Central 2025 wave 1 (BC26) is generally available. More details: General Available: Dynamics 365 Busine...

12 days ago

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

Cumulative Update (June, 2025) for Microsoft Dynamics 365 Business Central is now released. BC26: CU02 Cloud (SaaS): Managing Production and S...

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