Code to validate a form? - InfoPath Dev
in

InfoPath Dev

Code to validate a form?

Last post 01-10-2012 12:59 PM by arduk. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-09-2012 05:20 PM

    • arduk
    • Not Ranked
    • Joined on 11-27-2007
    • Posts 10

    Code to validate a form?

    I have a form which is being used to collect data, but rather than being submitted, I am using c# code to run some SQL to update a database (the form is only being used in the infopath client)

    I have added data validation rules to the form, and prior to running the SQL, I would like to ensure that the data in the form has passed all validation rules.

    Can someone tell me how to validate a form using code?

    I am sure this is really simple, but so far, I haven't been able to find what I am looking for.

    Thanks in advance for any assistance!!

    Filed under:
  • 01-10-2012 12:59 PM In reply to

    • arduk
    • Not Ranked
    • Joined on 11-27-2007
    • Posts 10

    Re: Code to validate a form?

    don't worry, someone has pointed me in the right direction.

    this.Errors gives you a collection of the errors on the form...

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.