all OnValidate() for ALL Fields in JScript Code-behind

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top