• If Gravity Forms > General Settings has the “Output HTML5” setting at “Yes”, this plugin stops working and triggers an “Error Applying validations!!” error in the console if there are any Number fields that have been set to “Required”.

    Here’s what the error in the console looks like:
    Error: LiveValidation::getElementType – Cannot use LiveValidation on an number input!
    at LiveValidation.getElementType (livevalidation_standalone.js?ver=1.1.0:469)
    at LiveValidation.initialize (livevalidation_standalone.js?ver=1.1.0:103)
    at LiveValidation (livevalidation_standalone.js?ver=1.1.0:13)
    at HTMLDocument.<anonymous> ((index):155)
    at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
    at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)
    at Object.trigger (jquery.js?ver=1.12.4:3)
    at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
    at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4:3)
    at Function.each (jquery.js?ver=1.12.4:2)

    See the problem in action here: https://test.abundantdesigns.com/number-test/

    Steps to reproduce:
    – Install “Gravity Forms” and “Real Time Validation for Gravity Forms” plugins on a new WordPress installation
    – Go to “Gravity Forms > Settings” and set “Output HTML5” to “Yes”
    – Create a new form and enable Real Time Validation on it
    – Add a Number field and check “Required”

    The cause of the error is that “Output HTML5” switches the input type from “text” to “number” and the Real Time Validation script has not been programmed to handle a “number” input type.

  • The topic ‘“Error Applying validations!!” with required Number fields in Output HTML5 mode’ is closed to new replies.