• Hello, i have a form inside a modal window, and I’m trying to reset it every time the window is closed, would it be an invalid or successfully sent form, im using something like “document.querySelector(‘.wpcf7-form’).reset()” on the modals closing event, and it works as expected when the form is invalid, but if it were successfully sent it doesn’t reset completely after resetting the class “sent” is still present which makes “wpcf7-response-output” div visible (but the text in it is gone). Is it a bug or am i doing something wrong? I should add that i have “demo_mode: on” in the additional settings.

    • This topic was modified 3 years, 8 months ago by brnteka.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with resetting the form after successful submission’ is closed to new replies.