Skip to main content

Notifications

Announcements

No record found.

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 194

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
  • Suggested answer
    Inge M. Bruvik Profile Picture
    999 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,001 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans