rsanchez / entry_type

A dropdown fieldtype for ExpressionEngine 3 that shows/hides other fields on the publish page.
http://devot-ee.com/add-ons/entry-type/
47 stars 21 forks source link

"EntryType is not defined" error #53

Open ejaedesign opened 6 years ago

ejaedesign commented 6 years ago

Hi Rob,

Just installed and tried out the EE4 version. It installed without a hitch but the Entry Type field is not hiding the others:

ee4_entry_type_bug

Looks like I'm getting a jQuery error:

ee4_entry_type_jquery_error

Currently running EE 4.1.2 on a Bootstrap 4 based site.

Thanks a bunch!

pyrobob83 commented 6 years ago

I'm getting the same issue. We've upgraded EE3 sites using Entry Type to EE4 and everything worked fine, but starting from EE4 I can't seem to get past these JS errors. Any help would be appreciated.

pyrobob83 commented 6 years ago

After further investigation, this appears to only happen when the publish form includes certain types of fields. The two fields I can get to replicate the console errors in the CP are Fluid Fields and a Grid field where one column inside the Grid is using Boldminded's 'Simple Grids' field. If either of those fields are present in the Publish form, I get console errors and Entry Type doesn't work.

Though along with the 'EntryType is not defined' error, I also get this one: 'TypeError: $(...).find(...).attr(...) is undefined'

Any ideas Rob? Is Entry Type compatible with Fluid Fields?