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: Do users really need permissions for Temporary Tables? (Permissions and temporary tables)

Hi, Readers.Today I want to discuss a question I’ve been asked recently: do users really need permissions for Temporary Tables? Here is ...

5 hours ago

Dynamics 365 Business Central: How to navigate directly from the BC admin center to the Power Platform admin center

Hi, Readers.Today I would like to share another mini tip about Business Central, how to navigate directly from the BC admin center to the Powe...

1 day ago

Dynamics 365 Business Central: How to add a Signature Pad to the Sales Order page (Capture and Save Customer Signatures)

Hi, Readers.Last week, I shared a quick post on how to build a custom calculator using control add-in objects, and it sparked quite a bit of d...

2 days ago

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...

6 days 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...

7 days 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...

8 days ago

Explore migration options for Microsoft Dynamics NAV, Microsoft Dynamics GP, and Microsoft Dynamics SL customers

Business Central provides a modern cloud ERP foundation that helps organizations streamline operations, improve visibility, support AI-powered...

8 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 ...

9 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...

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