mplodowski / formbuilder-plugin-public

https://octobercms.com/plugin/renatio-formbuilder
https://octobercms.com/plugin/renatio-formbuilder
2 stars 0 forks source link

Uncaught ReferenceError: resetForm is not defined. #5

Closed artistro08 closed 2 years ago

artistro08 commented 2 years ago

Describe the bug When I submit the form via the Snippet, Everything submitted successfully. But the form did not reset. I suspect that it's because it's missing some JavaScript

To Reproduce Steps to reproduce the behavior:

  1. Add Snippet to page
  2. Save page
  3. Submit the form

Expected behavior The form refreshes and clears. Instead it introduces a long "load" due to the JavaScript error

October version 2.1.20

Plugin version 2.1.0

Additional context The Error code is below

Uncaught ReferenceError: resetForm is not defined
    at HTMLFormElement.eval (eval at <anonymous> (framework.js:177), <anonymous>:3:1)
    at i (e9dfb5a5ea48c532720933058a4ee6ea-1637560270:2)
    at framework.js:177
    at u (e9dfb5a5ea48c532720933058a4ee6ea-1637560270:2)
    at Object.add [as done] (e9dfb5a5ea48c532720933058a4ee6ea-1637560270:2)
    at Object.success (framework.js:175)
    at u (e9dfb5a5ea48c532720933058a4ee6ea-1637560270:2)
    at Object.fireWith [as resolveWith] (e9dfb5a5ea48c532720933058a4ee6ea-1637560270:2)
    at k (e9dfb5a5ea48c532720933058a4ee6ea-1637560270:2)
    at XMLHttpRequest.<anonymous> (e9dfb5a5ea48c532720933058a4ee6ea-1637560270:2)
mplodowski commented 2 years ago

Please clear browser cache.

Alternatively you can go to file and hard reload it in browser: https://your.app/plugins/renatio/formbuilder/assets/js/form.js

Then reload form page again.

artistro08 commented 2 years ago

Once again, you're a wizard. Thank you