Validate Field Programmatically? - InfoPath Dev
in

InfoPath Dev

Validate Field Programmatically?

Last post 05-16-2013 02:47 PM by RobSil1976. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-16-2013 02:47 PM

    Validate Field Programmatically?

    Hi there,

    I have a repeating table that the user types  values into, then hits a button and the values are parsed and moved to a 2nd repeating table.  Just working on the validation logic (e.g. field has value, field 1 = field 2, date is < today's date, etc.).   When I invalidate a field I do this:

    Errors.Add(navToField,"Error", "Error: The selected row has an error in one field.");
    
    

    But it doesn't seem to clear out the errors when I type a new value in.  Curious what the best approach is to programmatically set an error that is cleared automatically?  I can just show MessageBoxes, but I would really like the fields to get highlighted in red since I can show all errors at once that way.

    Thanks,

    Rob

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