title | description | author | ms.author | ms.date | ms.reviewer | ms.topic | applies_to | search.audienceType | contributors | ||
---|---|---|---|---|---|---|---|---|---|---|---|
control.setDisabled (Client API reference) in model-driven apps| MicrosoftDocs |
Includes description and supported parameters for the control.setDisabled method. |
chmoncay |
chmoncay |
03/12/2022 |
jdaly |
reference |
Dynamics 365 (online) |
|
|
Sets whether the control is disabled.
All except kbsearch control type
formContext.getControl(arg).setDisabled(bool);
Name | Type | Required | Description |
---|---|---|---|
bool |
Boolean | Yes | Specify true or false to disable or enable the control. |
Note
If a control bound to a Business Required column is set to be disabled, the form will no longer require it to have a value before saving. See Column requirement level for more information.
[!INCLUDEfooter-include]