web
You’re offline. This is a read only version of the page.
close
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...
Answered

AL Disabling fields and editing

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have 2 questions

1. How can disable/deactivate/inactivate lookup when an option is selected. I am using onvalidate Trigget in the table field and on page field but I can't find any way or method to disable/enable.


2. How do I disable the page on both header and lines when the document is on status Pending Approval on a custom screen? I need also to prevent it from posting.

I have the same question (0)
  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at

    Create a new variable and assign that variable to the field, action, or page Enabled properties.

    On the OnAfterGetCurrRecord event, set that variable to yes or no depending on your condition.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/globalsearch/?q=how+to+hack++in+roblox+train+to+fight" - Nested quantifier +.