How to reload page after this.errors.DeleteAll(); - InfoPath Dev
in

InfoPath Dev

How to reload page after this.errors.DeleteAll();

Last post 04-07-2015 03:26 PM by Paradiddle. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-25-2015 11:14 AM

    How to reload page after this.errors.DeleteAll();

     I have a "Save as Draft" button the deletes all the validation errors with a this.errors.DeleteAll.  How do I refresh/reload the form so the "red" validation errors are visible after the "Save As Draft" button is clicked?

     Thanks for your help!

     

    Filed under:
  • 03-11-2015 11:13 AM In reply to

    Re: How to reload page after this.errors.DeleteAll();

     Ok, I will ask you in person when I come to training on April 7th :)

    Filed under:
  • 04-07-2015 03:26 PM In reply to

    Re: How to reload page after this.errors.DeleteAll();

    I added a field called refresh in a new section and added the section and field to all views of the form.  Then I added a rule to hide the section if it was blank.  After switch views, I check the value of the refresh field.  If it's empty, I set it to ".".  If it's equal to "." I set it to nothing.  This causes the view to refresh and update the form validation.  Might be a better way but this is what I came up with.

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