October CMS AJAX actions - plugin

Ad

What could be the problem if I get this error when I try to call an AJAX action?

Invalid handler name. The correct handler name format is: "onEvent"

I am trying to use contact form plugin and it's not working because of this AJAX call error. I included {% framework %} and {% framework extras %} in my main template at the very bottom, right after the jQuery includes. I use the contact form in another partial which is included in that main template. Any ideas?

Ad

Answer

Ad

From the docs:

Handler names should have the following pattern: onName

Is your handler name following that pattern?

Ad
source: stackoverflow.com
Ad