Search code examples
javascriptjqueryajaxoctobercmsoctobercms-plugins

October CMS AJAX actions - plugin


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?


Solution

  • From the docs:

    Handler names should have the following pattern: onName

    Is your handler name following that pattern?