FormLoad Event

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

Syntax

Sub FormLoad(Form)

Arguments

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.

Load form fields

Sub FormLoad(Form)
   'Add Items To "TO" Field on form
   form.Fields.Field("TO").AddListItem  "User1","User1@gMail.com"
   form.Fields.Field("TO").AddListItem  "User2","User3@gMail.com"
   form.Fields.Field("TO").AddListItem  "User2","User3@gMail.com"
end sub            
         
Sub FormLoad (Form)
   Form.StatusMsg Form.DeviceIP
End Sub               
            
Sub FormLoad(Form)
   Form.StatusMsg Form.DeviceName
End Sub