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

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

Cumulative Update (March, 2026) for Microsoft Dynamics 365 Business Central is now released. BC28: Public Preview The public preview for Dynam...

1 hour ago

Business Central 2026 release wave 1 (BC28): Audit user and group permissions across apps (new Permissions Overview page)

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

23 hours ago

Business Central 2026 release wave 1 (BC28): Include approvals for requisition worksheets and item journals in your workflows (New standard workflows)

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

1 day ago

Business Central 2026 release wave 1 (BC28): Send by Email & Standard Document Attachment Factbox for Posted Sales Shipments and Return Receipts

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

1 day ago

Business Central 2026 release wave 1 (BC28): Support for packaging analysis views in extensions (Create analysis views via AL)

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

2 days ago

Business Central 2026 release wave 1 (BC28): Show avatars for record creators and modifiers in lists (Created / Updated by) – Display data audit fields without customization

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

3 days ago

Business Central 2026 release wave 1 (BC28): Create purchase quotes for contacts (without a vendor)

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

3 days ago

Business Central 2026 release wave 1 (BC28): Define item attributes for item variants

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

3 days ago

Business Central 2026 release wave 1 (BC28): Add pictures to item variants to differentiate product options

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

4 days ago

The public preview for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available

Hi, Readers.The public preview environment for Dynamics 365 Business Central 2026 release wave 1 (BC28) is available now. You can create it in...

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