Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robert wood 6 posts 97 karma points
    Feb 22, 2018 @ 10:18
    Robert wood
    0

    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?

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Feb 22, 2018 @ 10:21
    Alex Skrypnyk
    0

    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

  • Robert wood 6 posts 97 karma points
    Feb 22, 2018 @ 10:27
    Robert wood
    0

    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?

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Feb 22, 2018 @ 10:47
    Alex Skrypnyk
    100

    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

  • Richard Leonard 3 posts 84 karma points
    Feb 22, 2018 @ 11:24
    Richard Leonard
    1

    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

  • Arther 3 posts 73 karma points notactivated
    Mar 17, 2020 @ 14:08
    Arther
    0

    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!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies