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 add a setup to the Manual Setup (1875, List) page

Hi, Readers.Today I would like to share another mini tip about Business Central, how to add a setup to the Manual Setup (1875, List) page. Thi...

3 hours ago

Dynamics 365 Business Central: Where to find Microsoft’s Contact and Support Numbers?

Hi, Readers.Today, I’d like to briefly discuss a question I was recently asked by a partner, where to find Microsoft’s Contact and...

1 day ago

Dynamics 365 Business Central: How to check the font of a standard report

Hi, Readers.Today I would like to share another mini tip about Business Central, how to check the font of a standard report. This is a questio...

2 days ago

Dynamics 365 Business Central: Add a calculator to the sales order page

Hi, Readers.Today I would like to talk about how to add a calculator to the sales order page in Business Central. This is an interesting ...

3 days ago

Dynamics 365 Business Central Blog Series: Inspecting pages (Page inspection)

Articles in this series: Analyzing performance issues using the page inspector Analyzing performance issues using the page inspector How to ch...

4 days ago

Dynamics 365 CE vs Business Central: Which Microsoft ERP & CRM Solution Should You Learn or Implement in 2026?

Introduction Microsoft Dynamics 365 has transformed how organizations manage customer relationships, business operations, and financial proces...

6 days ago

Dynamics 365 Business Central: Searches for duplicate external document numbers in sales documents and posted documents (Standard function/procedure)

Hi, Readers.Today I would like to talk about how to search for duplicate external document numbers in sales documents and posted documents usi...

7 days ago

Dynamics 365 Business Central: Configure text search language for multilingual environments (Text Search Language Optimizer)

Hi, Readers.Today I would like to talk about how to configure text search language for multilingual environments (Text Search Language Optimiz...

8 days ago

Does Dynamics 365 Business Central support browser-based translation (e.g., Microsoft Translator in Edge browser)?

Hi, Readers.Today I would like to discuss a question that was recently asked, does Dynamics 365 Business Central support browser-based tr...

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