Button_OnClick event

This event occurs when a when user clicks a button field on the form.

Syntax

Button_OnClick Form , ButtonName )

Arguments

Remarks

You can use this event to perform tasks such validating user input for a form field or populating other form field values on the form.

Example


Function Button_OnClick(Form,ButtonName)
  'Write custom code to lookup the user's home directory.
  Form.SetFieldValue “Path”, LookupHomeDirectory(Form.UserName)
End Function