InfoPath has built in validation. You can set up Rules and Validation events
right into the fields (controls) on the form. If a field is required a red
asterisk appears in the field, if you set a rule and the value in the field
fails the rule a red dotted line appears around the field ... You can even
set tips that appear as you mouse over the fields.
Try looking at the built in feature to validate your values. They should
meet your needs without having to write a custom webservice to do so.
> I am trying to create a web service that will handle the validation of the
> form data before being submitted to the DB and to Sharepoint. I wanted to
> know what is the proper programmatic way of checking the values in the form
> and also if it is possible to display a label on the form that will contain
> or display an error message next to the invalid form field.
Michael Reyeros - 03 May 2005 12:35 GMT
I am fully aware of Infopath's built in validation and rules functionality.
The application that we are developing requires that we be able to customize
the rules and validation on the fly it cannot be hard coded into the form it
must be dynamic based on each individual form.
> InfoPath has built in validation. You can set up Rules and Validation
> events
[quoted text clipped - 18 lines]
>> contain
>> or display an error message next to the invalid form field.