Copied to clipboard

Flag this post as spam?

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


  • Mads Rode 3 posts 73 karma points
    Apr 27, 2021 @ 09:29
    Mads Rode
    0

    Errors when using the Contact Section

    First of all, thank you for a great starter kit!

    I've just set up a clean solution running .NET framework 4.7.2 and installed umbraco 8.12.0 and subsequently the Umazel Starter Kit 2.0.

    After creating a Contact Section and adding the various configurations through the backoffice, I am unfortunately met with a series of issues.

    (recaptcha sitekey is v3)

    Validation is only working on the checkbox and I cant seem to opt out of, or configure any validation.

    Also, I am met with the following console error:

    Uncaught ReferenceError: Sys is not defined
    

    Looking through the console, it looks as if the error is originating from here:

    onclick="Sys.Mvc.AsyncForm.handleClick(this, new Sys.UI.DomEvent(event));"
    
    onsubmit="Sys.Mvc.AsyncForm.handleSubmit(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, httpMethod: 'POST', onFailure: Function.createDelegate(this, ShowContactError), onSuccess: Function.createDelegate(this, ShowContactSuccess) })
    

    Does anyone have any idea of what's going on?

    All the best!

  • Mads Rode 3 posts 73 karma points
    Apr 27, 2021 @ 11:54
    Mads Rode
    0

    I have added the following line to the Web.config, which seems to have taken care of "Uncaught ReferenceError: Sys is not defined"

    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    

    However I am still getting the same validation issues as before, as well as the following error

    (index):252 Uncaught TypeError: $(...).valid is not a function
        at HTMLButtonElement.validate ((index):252)
    
  • 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