This event occurs when the users send a document.
|Form||The form object.|
You can use this event upon user pressing the "send" button to perform tasks such as validating user input for a form field. If the return value is empty string then validation is assumed to have been successful.
Function Form_OnValidate(Form) ’Write custom validation to check that the user is attempting to enter a value for the Amount field that is less then 100. Set Amountfield = Form.Fields.Field(“Amount”) If (CInt(Amountfield.value) > 100) Then Form_OnValidate = ”Amount cannot be greater than 100.” End If End Function