C
c0dergirl
I have an InfoPath form that connects to a web service and retrieves
an xml document that it then does a replace on. So my InfoPath form
gets replaced with the result of the web service call.
This is all fine and dandy, but I have been having horrible issues
with OnValidate(). I do my web service call in OnLoad(), but
OnValidate() doesn't get called afterwards. So I have all these
required fields that don't get the asteriks (stars) shown beside them.
I need a way to manually call OnValidate() on all the fields in the
form. I tried doing XDocument.DOM.OnValidate(eventObj) in the OnLoad
method but I got a syntax error.
Any ideas would be VERY greatly appreciated.
Cheers,
Sara
an xml document that it then does a replace on. So my InfoPath form
gets replaced with the result of the web service call.
This is all fine and dandy, but I have been having horrible issues
with OnValidate(). I do my web service call in OnLoad(), but
OnValidate() doesn't get called afterwards. So I have all these
required fields that don't get the asteriks (stars) shown beside them.
I need a way to manually call OnValidate() on all the fields in the
form. I tried doing XDocument.DOM.OnValidate(eventObj) in the OnLoad
method but I got a syntax error.
Any ideas would be VERY greatly appreciated.
Cheers,
Sara