Using the code below, you can clear out errors from the Validator. Normally validation rules are in place to prevent bad data from being exported. Using methods like this allow the user to send data that does not meet forms design rules and may have unintended consequences in the backend database.

If (_form.Validator.HasErrors()) Then If (MsgBox("There are validation errors. Do you want to finish anyway?", MsgBoxStyle.YesNo, "Validation Errors") = MsgBoxResult.Yes) Then For Each xve As ValidationError In _form.Validator.ValidationErrors _form.Validator.RemoveFromValidationErrors(xve.ID) Next End If End If