FormValidate Event

The FormValidate event occurs when a user sends a document.


Function FormValidate(Form)


The form object that is being sent.


You can use this event to perform tasks such as validating user input for a form value.  If the return value is empty string then validation is assumed to have been successful.


Function FormValidate( Form )
   FormValidate = ""
   'Write custom validation to check that the user is attempting to enter a value for "Amount" field that is greater than 100.
   '"Amount" field type is number 
   If (Form.Fields.Field("Amount").Value  > 100 ) then
      'Return Error Message
      FormValidate = "Amount cannot be greater than 100.”
   End if
End Function