Title: Additional settings / Dom elements
Last modified: October 11, 2017

---

# Additional settings / Dom elements

 *  Resolved [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/)
 * Hello,
    1st of all thank you for your great plugin!!! I’m writing as I have an
   issue with Additional settings. In the past I had a simple line that worked well`
   on_sent_ok: "$('#bigIntro').addClass('feedback');"`
 * Now it does fire no more. I’ve tried to use the Dom events as you write but it
   has no effect neither.
 *     ```
       var wpcf7Elm = document.querySelector( 'div.wpcf7' );
       wpcf7Elm.addEventListener( 'wpcf7mailsent', function( event ) {
       	$('#bigIntro').addClass('feedback');
       }, false );
       ```
   
 * I see no error messages in console, no hint… 🙁
 * Would you please have any advice?
 * Thanks in advance,
    Jan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadditional-settings-dom-elements%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579483)
 * Try switching to the default theme.
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579604)
 * tried on a local copy of the site with an `alert('a');` inside the eventlistener,
   but nothing happens. Maybe it’s because I’m not on the last WP version?
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579701)
 * I’ve updated to last WP install and all the plugins but no change 🙁
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579785)
 * maybe it’s because I’ve set `define('WPCF7_LOAD_JS', false);`
 * I’ve added
    <?php if ( function_exists( ‘wpcf7_enqueue_scripts’ ) ) { wpcf7_enqueue_scripts();}
   wp_head(); ?>
 * but I see nothing printed in the html of the page. I expected to see a .js file
   imported, right?
 *  Thread Starter [synthview](https://wordpress.org/support/users/synthview/)
 * (@synthview)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579806)
 * Ok maybe I know! it’s because I’m sending the form in a classic way (no ajax).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Additional settings / Dom elements’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [synthview](https://wordpress.org/support/users/synthview/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/additional-settings-dom-elements/#post-9579806)
 * Status: resolved