Title: Javascript errors on checkout page
Last modified: November 22, 2023

---

# Javascript errors on checkout page

 *  Resolved [john84581299](https://wordpress.org/support/users/john84581299/)
 * (@john84581299)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/javascript-errors-on-checkout-page/)
 * There’s an error in the latest update of the plugin.
 * JavaScript is rendered for fields that are not present. This means that errors
   of type specified below occurs. The action in question is classes/plugins.php/
   woocommerce_before_checkout_form()
 * **Uncaught TypeError: document.getElementById(…) is null**
 *     ```wp-block-code
       document.getElementById('billing_company_field').classList.remove('validate-required');
       ```
   
 * This field, billing_company_field, is not present in the form.

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

 *  Plugin Support [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * (@rzepsen)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/javascript-errors-on-checkout-page/#post-17233079)
 * Hello,
 * Thank you for feedback.
 * We apologize for the inconvenience, the problem has been reported as an error,
   and our technicians are trying to resolve it as soon as possible. As soon as 
   I receive further information on this subject, I will notify you immediately.
 * In case of further questions, please contact me.
 * Best Regards,
 *  [swin](https://wordpress.org/support/users/sanwinter/)
 * (@sanwinter)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-checkout-page/#post-17267774)
 * We also detected similar issue on one of our websites, and this helps:
 * Issue detected in plugin “Flexible Checkout Fields”, they cal classListing but
   element not exists on page, added check if exists solved issue:
 * ![](https://i0.wp.com/wpdirectorykit.com/uploads/Screenshot_1.jpg?ssl=1)
 *  Plugin Support [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * (@rzepsen)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-checkout-page/#post-17273368)
 * Hi Swin,
 * Thank you for sharing your solution. I have forwarded your suggestion to the 
   development team. We are preparing a major plugin update of the plugin in which,
   will solve this problem, among others.
 * It may still take a while, but when the update is ready, I will keep you informed.
 * Thanks again 😉
 *  Plugin Support [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * (@rzepsen)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/javascript-errors-on-checkout-page/#post-17312319)
 * Hello Swin,
 * I want to inform you that we have released the Flexible Checkout Fields 3.5.19
   update containing the proper fixes for the problem you’ve reported. So please
   do the update.
 * If the WordPress updater hasn’t informed you about the newer versions available,
   please check for the updates manually, by choosing the Dashboard tab > Updates
   > Check Again option.
 * Please let me know if you have any further questions or if there is something
   more I can help you with.
 * Kind regards,
 *  Plugin Support [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * (@rzepsen)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/javascript-errors-on-checkout-page/#post-17361772)
 * Hi Swin,
 * As we haven’t got any replies, I’m marking this topic as resolved for now.

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

The topic ‘Javascript errors on checkout page’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 5 replies
 * 3 participants
 * Last reply from: [rzepsen](https://wordpress.org/support/users/rzepsen/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/javascript-errors-on-checkout-page/#post-17361772)
 * Status: resolved