console Error on single form instance – "Cannot read property 'length'"
-
The plugin seemed to work like a charm but I ran into some trouble trying to submit a single instance of a multipage form I have that is also running the Pro Add-ons: Coupons & Stripe.
I noticed the error while testing coupon codes. When I enter a code with the “Gravity Forms: Multiple Form Instances” plugin activated the page doesn’t show that the coupon code is added or change the total. Troubleshooting this problem I found the error in the console and also that if I disabled the “Gravity Forms: Multiple Form Instances” plugin the error was gone and the coupons seemed to work fine.
This is the console error:
Uncaught TypeError: Cannot read property ‘length’ of undefined —– gravityforms.min.js?ver=1.9.19:1
The part of the .js file referenced is here but the problem if fixed when “Gravity Forms: Multiple Form Instances” is deactivated:
if (a.length < 4)
https://www.ads-software.com/plugins/gravity-forms-multiple-form-instances/
- The topic ‘console Error on single form instance – "Cannot read property 'length'"’ is closed to new replies.