I'm having an issue with preventing form submission where such submission bypasses the custom form validation I've written.
I've disabled the Submit button on the toolbar and the only method of submitting the form normally is using a button with .NET code behind it.
However when viewing the form, if the user closes InfoPath, they are prompted by the application to submit the form and can do so as InfoPath calls the Submit functionality directly, bypassing my validation.
Is there anyway to prevent InfoPath from prompting the user to submit when the application is closed? Because I'm submitting to a web service, the OnSubmitRequest function is never called so I can't do any validation on the form in this circumstance.
(See
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1205 for details of my meanderings on the topic of OnSubmitRequest().)
I have a fairly iffy workaround but I'm hoping that someone can suggest a way to work with InfoPath instead of against it. :)
Thanks,
David.