Skip to main content

Notifications

Announcements

No record found.

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

what is the easiest way to enable or disable of a filed on a page based on status change on check box field on same page

(0) ShareShare
ReportReport
Posted on by 290

HI,

i have a Text Field and a checkbox filed, in a page and i want to disable Text field when user ticked the Check box and vice versa. 

what is the easiest way to address above requirement in AL ?

Thanks,

Nishan

  • Suggested answer
    riya patel Profile Picture
    riya patel 80 on at
    RE: what is the easiest way to enable or disable of a filed on a page based on status change on check box field on same page

    You could create a boolean variable and change it's value on onvalidate trigger of the checkbox and assign that boolean to the editable property of the textbox you want to enable or disable accordingly.

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: what is the easiest way to enable or disable of a filed on a page based on status change on check box field on same page

    This is a common method used in the standard app: docs.microsoft.com/.../devenv-visible-property

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans