Validation - InfoPath Dev
in

InfoPath Dev

Validation

Last post 08-06-2008 03:17 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-05-2008 06:00 AM

    Validation

    Suppose I have two controls in my form.  Validation of control 2 depends on the value of control 1.

    My problem is that if the user fills in control 2 prior to control 1, I cannot validate control 2 using the validating event, and hence, the ReportError() method is not available anymore.

    Is there a way how I can force the validating event to execute at a later stage (e.g. on submit) or report the error in some other way?

    Filed under:
  • 08-06-2008 03:17 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Hello,

    Here is the two ways:

    1. You can restrict to enter the data in Second control If user doesn't not have data in first control.

    2. If user entered in second control first and after that user enters the data in first control then we can enable the validation using code. In first control on after change event we can get the second control data and set the data to same field then validation error event will fire again.

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