web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to conditionally make the field in list page editable/non-editable based on other fields?

(0) ShareShare
ReportReport
Posted on by 593
Hi Guys,
       I am currently working on a list page where i have to make the field editable/non-editable based on the changes of two other fields conditionally.
 
       I have declared a global variable of boolean type(isEditable) and tried to set the value using a condition and it is not worked. I have used the below trigger on the field which is supposed to change editable/non-editable based on condition
 

trigger OnValidate()
begin  
      if rec.field1=value1 and rec.field2=value2 then
          isEditable:=false;       
end;
        Is there any other way to make this work?
      
        Any help on this would be much appreciated.
 
Thanks,
Tamilarasu Arunachalam
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,927 Super User 2026 Season 2 on at
    Hi, hope the following helps.
    Switching a page to non-editable in real time via a field value
     
     
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 566 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 347 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 327 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans