mplodowski / formbuilder-plugin-public

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

resetForm function does not fire #42

Closed petrsiroky closed 6 months ago

petrsiroky commented 6 months ago

Describe the bug Hi, I'm having trouble submitting the form. The form is submitted and displays a success message, but the resetForm function does not fire. Has anyone encountered this problem. Thank you

Screenshots image

October version 3.6.3

Plugin version 4.0.4

mplodowski commented 6 months ago

Check your layout has following code:

{% styles %}
{% framework extras %}
{% scripts %}

Also check if form.js?v=4 is loaded in developer toolbar network tab.

Maybe this will help:

https://github.com/mplodowski/formbuilder-plugin-public/issues/5

petrsiroky commented 6 months ago

Ah, I already found the problem. I had a script in the <head> section. After moving it before the </body> tag, everything works. Thank you