Can anyone pitch in some simple guidance on adding reCaptcha to Umbraco. I am currently using basic Umbraco and don't have Umbraco Forms installed. Is it possible and if so can anyone provide clear simple steps on how to to achieve this?
Could you please share your controller code because the example from codeshare.co.uk does not check the validation of reCAptcha and submit form with message.
Please help!
reCaptcha on Umbraco
Can anyone pitch in some simple guidance on adding reCaptcha to Umbraco. I am currently using basic Umbraco and don't have Umbraco Forms installed. Is it possible and if so can anyone provide clear simple steps on how to to achieve this?
Hi Robert
You can do it of course, I made a package for Umbraco forms - https://our.umbraco.org/projects/collaboration/recaptcha-field-for-umbraco-forms/
You can easily get the code of this package and do recaptcha for any for you want, have a look at the repo -
https://gitlab.com/umakers-opensource/UmbracoFormsReCAPTCHA
Basically you need to call this code each time form submitted - https://gitlab.com/umakers-opensource/UmbracoFormsReCAPTCHA/blob/master/Helpers/UmbracoFormsEvents.cs
Hope it makes sense for you
/Alex
Thanks Alex, valuable information. but what I am really asking is can it be done without installing Umbraco forms, in other words via the native form?
Robert, yes, it can be done
You just have add needed script, needed field to the form and check each submit with code that I pointed
I followed this post: https://codeshare.co.uk/blog/how-to-add-recaptcha-to-an-mvc-form/
I did then have to modify it for my own use as I am posting with Ajax but it gave me the basis to start with
Could you please share your controller code because the example from codeshare.co.uk does not check the validation of reCAptcha and submit form with message. Please help!
is working on a reply...