ISProfileForm.DisableControls

Description

This function disables the form controls with the specified names.

Syntax

object.DisableControls aControls[, Enable = false]

Part Attribute Type Description
object Required
The object always implements the ISProfileForm interface
aControls In, Required
string
The list of the names of controls separated by a semi-colon
Enable In, Optional
Default value is false
bool
New 'Enabled' status for the control

Example

Disable the form controls with the specified names.

Dim aForm

Set aForm = Profile.Form
aForm.DisableControls "CheckBox1;edtPackYears", false
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface the 'Enabled' property can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the control in the controls tree > Properties > Enabled.

Version information

Added in v7.8.0