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