community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

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)

Make a column editable or non-editable on a list page based on row-specific conditions using a Boolean field and the Editable property. This is useful when different rows need different edit permissions without showing error messages.

post Dynamics 365 Lab

Yun Zhu · 2026-06-26 · 359 words · about 2 min

"they want a specific column to be editable only for rows that meet certain conditions, and non-editable for all other rows."

Key points

  • Use a variable bound to the Editable property to conditionally control field editability
  • Update the variable in OnAfterGetRecord to reflect the condition for each row
  • Update the variable in OnValidate when the condition field changes
  • Fields remain non-editable from the start, no error messages required

Quotes

  • “they want a specific column to be editable only for rows that meet certain conditions, and non-editable for all other rows.” (Defines the core requirement for conditional field editability based on row-level conditions)
  • “the field should simply be non-editable from the start.” (Explains that the solution must prevent editing without triggering validation errors)
  • “you just need to control the Editable property using a variable.” (Provides the key implementation technique for achieving dynamic editability)

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.

No source states these links: they share an object, a model read them, or a person found the same subject.

Context

  • Features: Dynamic Editable Control, Conditional Field Editability, List Page Customization, Page Extensions, Table Extensions

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.