Title: Javascript warning with AMP
Last modified: December 13, 2019

---

# Javascript warning with AMP

 *  Resolved [rsmith4321](https://wordpress.org/support/users/rsmith4321/)
 * (@rsmith4321)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/)
 * The javascript warning appears on all forms now for amp pages, because of course
   javascript is disabled on amp pages. This is a serious issue I’m going to see
   if I can revert to the previous version.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-warning-with-amp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [rsmith4321](https://wordpress.org/support/users/rsmith4321/)
 * (@rsmith4321)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12236708)
 * For now I just edited out the code in class-frontend.php so you won’t see that
   warning on my site, but it would be there without the edit.
 *  [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * (@jaredatch)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12236805)
 * Sorry about that!
 * When you get a chance, can you let us know what specifically you edited (inside
   class-frontend.php) or what the JS errors were?
 *  Thread Starter [rsmith4321](https://wordpress.org/support/users/rsmith4321/)
 * (@rsmith4321)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12237040)
 * Sorry if I wasn’t clear, in the latest update you added a warning to the form
   if the browser has javascript disabled. It was in your release notes. However
   this warning also shows on amp pages. I’m not sure why because javascript is 
   still enabled in the browser so the contents of a noscript tag shouldn’t show.
   I just commented out the code that displays the warning for now.
 *     ```
       		// Output <noscript> error message.
       		//$noscript_msg = apply_filters( 'wpforms_frontend_noscript_error_message', __( 'Please enable JavaScript in your browser to complete this form.', 'wpforms-lite' ), $form_data );
       		//if ( ! empty( $noscript_msg ) && ! empty( $form_data['fields'] ) ) {
       		//	echo '<noscript class="wpforms-error-noscript">' . esc_html( $noscript_msg ) . '</noscript>';
       		//}
       ```
   
    -  This reply was modified 6 years, 5 months ago by [rsmith4321](https://wordpress.org/support/users/rsmith4321/).
 *  [Sambuno](https://wordpress.org/support/users/goldmaverick/)
 * (@goldmaverick)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12284212)
 * Is there an update for the plugin planned to correct it?
    I have the same issue
   on my contact page: [https://www.sambuno.com/contact/](https://www.sambuno.com/contact/)
 * I followed rsmith4321 ‘s fix for now
    -  This reply was modified 6 years, 5 months ago by [Sambuno](https://wordpress.org/support/users/goldmaverick/).
    -  This reply was modified 6 years, 5 months ago by [Sambuno](https://wordpress.org/support/users/goldmaverick/).
    -  This reply was modified 6 years, 5 months ago by [Sambuno](https://wordpress.org/support/users/goldmaverick/).
    -  This reply was modified 6 years, 5 months ago by [Sambuno](https://wordpress.org/support/users/goldmaverick/).
    -  This reply was modified 6 years, 5 months ago by [Sambuno](https://wordpress.org/support/users/goldmaverick/).
 *  Plugin Support [Ethan Choi](https://wordpress.org/support/users/ethanchoi/)
 * (@ethanchoi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12289086)
 * Hi [@rsmith4321](https://wordpress.org/support/users/rsmith4321/) and [@goldmaverick](https://wordpress.org/support/users/goldmaverick/),
 * This issue has been reported to our development team, and we’ll be looking into
   it. I apologize for the inconvenience in the meantime.
 *  Thread Starter [rsmith4321](https://wordpress.org/support/users/rsmith4321/)
 * (@rsmith4321)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12330153)
 * How did you release a new version without fixing this? I had edited the code 
   to remove the error but now after updating I have to do it again, I just assumed
   the update would take care of the error. Just again this appears at the top of
   every form “Please enable JavaScript in your browser to complete this form.” 
   and javascript is not disabled in my browser.
 * Also if it helps anyone I had to search again for the location. It’s in /wpforms-
   lite/includes/class-frontend.php
    -  This reply was modified 6 years, 4 months ago by [rsmith4321](https://wordpress.org/support/users/rsmith4321/).
 *  [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * (@jaredatch)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12330197)
 * Sorry about that!
 * The good news is this was fixed on Monday. However, unfortunately this was after
   the latest release was finalized.
 * But this fix will 100% be included in the next update, regardless if it is a 
   minor or major release.
 *  [Sambuno](https://wordpress.org/support/users/goldmaverick/)
 * (@goldmaverick)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12330228)
 * When is the next update? Is provision of a timeframe possible?
 *  [Jared Atchison](https://wordpress.org/support/users/jaredatch/)
 * (@jaredatch)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12330674)
 * We target 4-6 week “major” release cycle.
 * So this means next release should be second half of Feb.
 * However if critical bugs/issues come up, we’ll release a minor point release 
   before then.
 * Next release will have this fix, regardless if major or minor release.
 * Hope that helps.
 *  [Daniel](https://wordpress.org/support/users/dssaez/)
 * (@dssaez)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12341953)
 * Hi, how are you doing? I Hope everything is ok.
 * I would say that you should release a minor version as soon as possible with 
   at least this fix, otherwise you are going to leave many websites displaying 
   the warning message, including many of mine which I develop for some clients.
   I use your plugin and it does make any sense to leave it like this if you already
   have the solution. In my opinion this is something to be considered a big issue.
   I was very comfortable but I have just started to check other plugins.
 * Thank you.
 *  [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * (@jquigam)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12362583)
 * Hi [@dssaez](https://wordpress.org/support/users/dssaez/) – I really do apologize,
   and our development team is actively working to get this issue resolved. We’re
   eager to get this fixed as well, but are also careful in our process to ensure
   we don’t end up creating more issues, etc.
 * In the meantime, we’ll leave this thread open until the solution is ready.
 *  [Artneo](https://wordpress.org/support/users/artneo/)
 * (@artneo)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12399224)
 * I’m having the same issue. Looking forward to this next update.
 *  Thread Starter [rsmith4321](https://wordpress.org/support/users/rsmith4321/)
 * (@rsmith4321)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12399636)
 * This has been an issue for 2 months now, I’m losing hope on a fix. If I didn’t
   understand some code and could fix it myself the contact form would have been
   broken for 2 months without a fix.
 *  [Sambuno](https://wordpress.org/support/users/goldmaverick/)
 * (@goldmaverick)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12399676)
 * It really is appalling how nonchalant they are about it.
 *  Plugin Support [Ethan Choi](https://wordpress.org/support/users/ethanchoi/)
 * (@ethanchoi)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12539765)
 * Hi [@rsmith4321](https://wordpress.org/support/users/rsmith4321/), [@goldmaverick](https://wordpress.org/support/users/goldmaverick/),
   [@dssaez](https://wordpress.org/support/users/dssaez/), and [@artneo](https://wordpress.org/support/users/artneo/),
 * The fix for this issue has been released in 1.5.9, so updating the plugin to 
   the latest version (we’re currently on 1.5.9.1) should resolve the issue.
 * Thanks!

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

The topic ‘Javascript warning with AMP’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 15 replies
 * 7 participants
 * Last reply from: [Ethan Choi](https://wordpress.org/support/users/ethanchoi/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/javascript-warning-with-amp/#post-12539765)
 * Status: resolved