abwebdevelopers / oc-forms-plugin

Custom forms made easy
11 stars 14 forks source link

Uncaught ReferenceError: $ is not defined #32

Closed fiskeren closed 3 years ago

fiskeren commented 3 years ago

Hi,

Just implemented the Custom Forms plugin for October CMS, but it doesn't seem to work. I can see in the console, that the JavaScript gives:

VM130 custom-form.js:3 Uncaught ReferenceError: $ is not defined
    at VM130 custom-form.js:3
(anonymous) @ VM130 custom-form.js:3
setInterval (async)
(anonymous) @ VM130 custom-form.js:2

image

I googled my way in to understand that I need jQuery in my page somewhere, but haven't found the right one yet - Can you please help which jQuery library I need to add to get it work?

After adding jQuery to my site: image

bennothommo commented 3 years ago

@fiskeren the October CMS AJAX framework is required for this plugin to work. You need to have {% framework extras %} in your layout before any other scripts are loaded.