Skip to main content
Business Central forum
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

editSubscribe (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 33,131 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

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans