Step-by-Step Guide to Custom User Controls in Business Central
Custom user controls in Business Central use HTML, JavaScript, and AL to create bespoke UI components beyond standard controls. The post demonstrates building a star rating control for vendors, covering the control addin definition, JavaScript implementation, and AL page integration.

post Aardvark Labs
"User controls are the way that users interact with the system."
Key points
- User controls bridge AL and JavaScript to extend Business Central’s UI capabilities with custom HTML and CSS components
- Control addins declare events and procedures that enable bidirectional communication between JavaScript and AL code
- The startup script initializes the control and signals readiness via OnControlReady event before AL can interact with it
- Data flows from AL to JavaScript through procedures like SetRating, and from JavaScript to AL through events like OnRatingChanged
- Proper state management with flags prevents recursion when updating controls from both AL and user interactions
Quotes
- “User controls are the way that users interact with the system.” (Establishes that controls are the fundamental mechanism for user interaction in Business Central)
- “These are small HTML and JavaScript components we can create to add user interfaces to Business Central.” (Clarifies that custom user controls are web-based components integrated into BC for enhanced UX)
- “You can create entire bespoke interface systems to meet specific data entry needs.” (Shows the broader potential of user controls beyond simple examples)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- other “ARDVendorRatingControl”
- page 26 “Vendor Card”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Allow Over Receipts of Products — possibly related: both name Page 26 “Vendor Card”
- Business Central 2025 wave 2 (BC27): Add more fields and columns by personalizing pages — possibly related: both name Page 26 “Vendor Card”
- Business Central 2026 release wave 1 (BC28): Calculate withholding taxes for vendors (Withholding Tax) — possibly related: both name Page 26 “Vendor Card”
- Business Central 2026 release wave 1 (BC28): Use self-billed invoices — possibly related: both name Page 26 “Vendor Card”
- Comparing the Pay Vendor Process in Dynamics SL with Dynamics 365 Business Central — possibly related: both name Page 26 “Vendor Card”
- Dynamics 365 Business Central: How to hide/disable New, Edit (Edit List), and Delete actions on the page — possibly related: both name Page 26 “Vendor Card”
- Dynamics 365 Business Central: How to quickly check whether the user has write (Insert, Delete, and Modify) permission for the table in AL — possibly related: both name Page 26 “Vendor Card”
- Dynamics 365 Business Central: Merge duplicate records (customers, vendors, or contacts) — possibly related: both name Page 26 “Vendor Card”
- What’s new: Add existing table fields to pages (2023 release wave 2) — possibly related: both name Page 26 “Vendor Card”
- What’s New: Automated IRS1099 Reporting (2024 release wave 1) — possibly related: both name Page 26 “Vendor Card”
Context
- Features: user controls, control addins, custom UI components, event handling, AL-JavaScript bridge, vendor rating control
Source: Aardvark Labs, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.