Thread

JavaScript error when blurring from field in a non-regular form

November 15, 2017 5:10am

Subscribe [2]
  • #1 / Nov 15, 2017 5:10am

    Low's avatar

    Low

    399 posts

    In Low Search’s lexicon, I’ve got a field I use for ajax lookups. When blurring out of the field, a JS error is triggered by some form validation script:

    TypeError: true is not a function
    

    most likely triggered by a function called _toggleErrorForFields, and specifically:

    this._validationCallbacks[cleanField](message == 'success', message.error, field);
    

    (according to the inspector)

    Is there any way to not activate validation here?

  • #2 / Nov 15, 2017 10:27am

    Kevin Cupp's avatar

    Kevin Cupp

    727 posts

    Try adding data-ajax-validate="no" to that text input.

  • #3 / Nov 15, 2017 1:32pm

    Low's avatar

    Low

    399 posts

    Cool, that works. Thanks.

ExpressionEngine News

#eecms, #events, #releases