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

Community site session details

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

Mandatory & Not Editable Filed

(0) ShareShare
ReportReport
Posted on by 213

Dear all,

I created one field in Page Extension. How we can change that field  "Billed Amount" as mandatory and Once the data is filled then only User “Arun” should only have the option to Edit that field. how we can achieve this.

pageextension 60001 pageExt extends "Page"
{
    layout
    {
        addafter("Document date")
        {
            field("Billed Amount"; Rec."Billed Amount")
            {
                ApplicationArea = All;

            }
        }
    }
}
Thankyou All
I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,065 Moderator on at
    RE: Mandatory & Not Editable Filed

    Are you sure you want to implement a solution where only one named user can change a field?

    My recommendation would be that you at least have the option to assign the right to modify this field in some kind of setup, maybe the user setup.

    The easiest way to modify the behavior of a field is on the onvalidate trigger for the field in the underlying table. 

    Sometimes it is also good to use the OnModify trigger on the table.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,267

#2
Sumit Singh Profile Picture

Sumit Singh 2,098

#3
YUN ZHU Profile Picture

YUN ZHU 1,766 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans