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: Make the same column editable or non-editable based on different conditions on the list page (Dynamic Editable Control for the Same Column)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to make the same column editable or non-editable based on...

1 day ago

Your Complete Guide To Microsoft Dynamics NAV 

Businesses need to manage multiple activities beyond their core operations. From finance and inventory management to customer relationship man...

2 days ago

Dynamics 365 Business Central: How to flow/pass custom field values from Sales Order to Production Order

Hi, Readers.Yesterday, we discussed how to quickly create Production Orders from Sales Orders. Today, we will look at a question regarding a s...

2 days ago

Dynamics 365 Business Central: How to quickly create Production Orders from Sales Orders

Hi, Readers.Today I would like to share another mini tip about Business Central, how to quickly create Production Orders from Sales Orders. Yo...

3 days ago

Business Central 2026 release wave 1 (BC28.2): Power BI Report Deployments (Centralized Management of Power BI Apps)

Hi, Readers.Dynamics 365 Business Central 2026 wave 1 (BC28.2) is generally available. More details: Cumulative Update Summary for Micros...

4 days ago

Dynamics 365 Sales Integration with Business Central: Native, Custom, or Third-Party?

Connecting your CRM and ERP should mean one thing: your sales team sees accurate, current data from Business Central inside Dynamics 365 Sales...

5 days ago

Business Central 2026 release wave 1 (BC28): Item – ABC Analysis (Standard report)

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

17 days ago

Dynamics 365 Business Central: How to create a new item from a picture/image (Out-of-the-Box)

Hi, Readers.Today I would like to share another mini tip about Business Central, how to create a new item from a picture. Items, among other p...

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