Using sc8.u3 with WFFM 8.2u3
I'm encrypting form data on submit. When there is an exception, I would like to show the error message but here, it always shows the success message.
public override void InsertFormData(FormData form)
{
Assert.ArgumentNotNull(form, "form");
Assert.ArgumentNotNull(form.Fields, "form.Fields");
try
{
form.Fields = EncryptFields(form.Fields);
if (form.Fields != null)
{
base.InsertFormData(form);
}
}
catch(Exception ex)
{
Log.Error("Exception: " + ex.Message, this);
throw;
}
}