I have updating a custom recaptcha to meat the needs of the client and there site, the site was originally a version 8 site and all worked as expected.
Now the sites in the process of been upgraded to version 10 I have hit an issue where by I have the following code:
public class FormValidateNotificationHandler : INotificationHandler
Boolean isvalid = IsValidCaptcha(notification.Context);
if (!isvalid)
{
notification.ModelState.AddModelError("recaptchaError", "There has been a problem validating your form. Please reload the page and try again.");
}
}
I know it adding the .AddModelError message to the model but that message dose not seem to be getting propagated back to the calling form.
Error message not been passed back in Forms
Hi,
I have updating a custom recaptcha to meat the needs of the client and there site, the site was originally a version 8 site and all worked as expected.
Now the sites in the process of been upgraded to version 10 I have hit an issue where by I have the following code:
public class FormValidateNotificationHandler : INotificationHandler
}
I know it adding the .AddModelError message to the model but that message dose not seem to be getting propagated back to the calling form.
What am I missing??????
is working on a reply...