Form_OnLoad Event

This event occurs before a form is displayed on the device panel.

Form_OnLoad ( Form )
Argument Description
Form The form object that is being loaded.

Remarks

You can use this event to perform tasks such as initializing the form fields or the form scan settings.

Example

Sub Form_OnLoad(Form)
  ’Add Items To "TO" Field on form
  form.Fields.Field("TO").AddListItem "User1","User1@gMail.com"
  form.Fields.Field("TO").AddListItem "User2","User2@gMail.com"
  form.Fields.Field("TO").AddListItem "User3","User3@gMail.com"
end sub