Validating on the preSave event
This example fires the execValidate() on the preSave event. If required fields are null, then a warning is displayed. Note that for this example we have not used some of the new features, such as validationState event or the cancelAction method. Therefore it should work satisfactorily in earlier versions of Acrobat/Reader.