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 display a custom Application Version (e.g., from W1 28.0 to YUN ZHU 28.0)

Hi, Readers.Today I would like to talk about an interesting topic, how to display a custom Application Version (e.g., from W1 28.0 to YUN ZHU ...

1 day ago

Dynamics 365 Business Central: How to set Company Badge (System Indicator) via AL Code – Automatically set Company Badge

Hi, Readers.Today I would like to talk about how to set Company Badge (System Indicator) via AL Code – Automatically set Company Badge. ...

2 days ago

Business Central 2026 release wave 1 (BC28): Storing Document Attachments outside the database (No customization) – See benefits of external storage support for document attachments

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

3 days ago

Dynamics 365 Business Central: How to easily prevent users from adding or modifying Links and Notes (Making Links and Notes Read-Only)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to easily prevent users from adding or modifying Links an...

4 days ago

Dynamics 365 Business Central: How to add Marketing Text Factbox to Item List page

Hi, Readers.Today I would like to talk about how to add Marketing Text Factbox to Item List page. For any item registered in Business Central,...

5 days ago

Major update of Dynamics 365 Business Central 2026 release wave 1 (BC28) is available for existing customers

Hi, Readers.Dynamics 365 Business Central 2026 wave 1 (BC28) is generally available. More details: General Available: Dynamics 365 Business Ce...

8 days ago

Business Central 2026 release wave 1 (BC28): Run AL tests from Visual Studio Code (Test codeunits and test methods)

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

9 days ago

Business Central 2026 release wave 1 (BC28): Experience improved usability in manufacturing

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

10 days ago

Business Central 2026 release wave 1 (BC28): Financial Reporting enhancements

Hi, Readers.The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available. Learn more: Link. I will contin...

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