We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

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

Developer Preview

Low's avatar
Low
407 posts
7 years ago
Low's avatar Low

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?

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
7 years ago
Kevin Cupp's avatar Kevin Cupp

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

       
Low's avatar
Low
407 posts
7 years ago
Low's avatar Low

Cool, that works. Thanks.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.