Submit to a form library with Validation Errors.

  • Thread starter Bob Chauvin \( Paix dehors \)
  • Start date
B

Bob Chauvin \( Paix dehors \)

I would like to allow documents to be saved to a form lib even if they
contain validation errors. Currently if I try to submit the form, it
displays an error message regarding the validation errors and rejects the
submit.

Any way to get around this?
 
B

Ben Walters

Hey Bob,
one option here is to delete the errors from the collection before you fire
the submit event, if you add some managed code behind the button you can do
this

e.XDocument.Errors.DeleteAll();
e.XDocument.Submit();

Cheers
Ben Walters
 
B

Bob Chauvin \( Paix dehors \)

Thanks Ben, I'll give that a try.


Ben Walters said:
Hey Bob,
one option here is to delete the errors from the collection before you
fire
the submit event, if you add some managed code behind the button you can
do
this

e.XDocument.Errors.DeleteAll();
e.XDocument.Submit();

Cheers
Ben Walters
 
Top