gravityforms-repeater icon indicating copy to clipboard operation
gravityforms-repeater copied to clipboard

Uncaught TypeError: Cannot read property 'required' of undefined

Open TheeBryanWhite opened this issue 9 years ago • 3 comments
trafficstars

Everything was working fine with the plugin (Which is clutch, by the way. Super helpful) until I added some conditional logic and this JS error broke the entire form. The form now has an inline display: none applied to it.

The culprit seems to be this line: if (childInfo['required']) { childRequired = true; }

TheeBryanWhite avatar Jul 15 '16 21:07 TheeBryanWhite

I'm not using any conditional logic, but I am getting the same error.

blakewatson avatar Jul 18 '16 21:07 blakewatson

I think I just fixed this by using jQuery 3.1 instead of 1.12.x.

blakewatson avatar Jul 18 '16 21:07 blakewatson

EDIT: Using jQuery 3.1 (https://code.jquery.com/jquery-3.1.0.min.js) does not fix the issue.

I simply defers the exception. Issue still exists.

I'm not using conditional logic or an AJAX form. Error is on line 97: q.required && (F = !0),

d3vit avatar Nov 29 '16 20:11 d3vit