Copied to clipboard

Flag this post as spam?

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


  • Liam Dilley 172 posts 402 karma points
    Nov 07, 2023 @ 01:29
    Liam Dilley
    0

    Umbraco 12 Forms - Google Recpatcha V3 (with includeScripts = false)

    I am doing a pure Javascript site and do not want to use the included form scripts so set that to false. The issue I have is that with that false any google reCaptcha V3 in a form - It no longer works and there are no instructions on what to do or setup to enabled that to function.

    Can anyone help please?

  • Liam Dilley 172 posts 402 karma points
    Nov 07, 2023 @ 01:39
    Liam Dilley
    100

    For reference I found the issue with the script calls inside the FieldType.

    FieldType.Recaptcha3.cshtml

    The following does not call script files: Html.AddFormThemeScriptFile

    If I do it manually:

    <script src="https://www.google.com/recaptcha/api.js?render=@siteKey"></script>
        <script src="/App_Plugins/UmbracoForms/Assets/recaptcha.v3.init.min.js"></script>
    

    It all works

  • 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