Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to hide and reset form on submit #17

Open
buzztone opened this issue Jan 10, 2018 · 2 comments
Open

Add option to hide and reset form on submit #17

buzztone opened this issue Jan 10, 2018 · 2 comments

Comments

@buzztone
Copy link

“on_sent_ok” and its sibling setting “on_submit” are deprecated and about to be removed in the next version of Contact Form 7- v5.0 - see https://contactform7.com/2017/06/07/on-sent-ok-is-deprecated/

2018-01-10_01

contact-form-7-extras could be extended to cover following items done previously using on_sent_ok:

CF7 author recommends using https://contactform7.com/dom-events/ to replace on_sent_ok.

As CF7 has over 6 million active installs, I expect there are several 100,000 sites using on_sent_ok. That is potentially a lot of people how are going to have partly broken CF7 forms when Contact Form 7 v5.0 is released around the end of Jan 2018.

contact-form-7-extras already provides an alternative to using on_sent_ok for following common uses:

It might make sense to extend support to these other on_sent_ok uses.

@kasparsd
Copy link
Owner

Thanks @buzztone! This was already reported in #10 and fixed in #13.

@kasparsd
Copy link
Owner

@buzztone Oh, sorry -- this was about adding two new "hooks":

  • Hide CF7 form after sent
  • Reset form

I'll re-open it and rename it to clarify the feature request.

@kasparsd kasparsd reopened this Jan 10, 2018
@kasparsd kasparsd changed the title on_sent_ok is about to be removed from Contact Form 7 Add option to hide and reset form on submit Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants