Field_OnChanged event
This event occurs when a field value on the form has changed.
| Argument | Description |
|---|---|
| form | The form object. |
| fieldname | The name of the field. |
| fieldvalue | The value of the field. |
Remarks
You can use this event to perform tasks such as populating other form field values based on the changed field value.
Example
Sub Field_OnChanged(Form, FieldName, FieldValue)
'Write custom code to lookup the user’s home directory.
If (FieldName = "UserName") Then
Form.SetFieldValue "Path", LookupHomeDirectory(FieldValue)
End If
End Sub