Title: CF7 Loading state
Last modified: August 31, 2016

---

# CF7 Loading state

 *  [sampd](https://wordpress.org/support/users/sampd/)
 * (@sampd)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cf7-loading-state/)
 * We have other states such as ‘sent’,’spam’, and ‘invalid’ but not ‘loading’. 
   Instead the ajax loading gif is shown.
 * To give the user more of a UX I have been adding the loading state to the cf7
   scripts.js.
 * On line 16 on adding this:
    `$form.addClass('loading');`
 * and on line 89 changing this:
    `$form.removeClass('invalid spam sent failed');`
 * to this:
    `$form.removeClass('invalid spam sent failed loading');`
 * **My main question is there a better way of doing this/will it ever be added?**
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

The topic ‘CF7 Loading state’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [sampd](https://wordpress.org/support/users/sampd/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/cf7-loading-state/)
 * Status: not resolved