Formidable Forms

Formidable Forms

  • Features
  • Pricing
  • Resources
    • Docs & Support
    • Blog
    • Community
  • Solutions
    • Web Applications
    • Calculators
    • Surveys
    • Directories
    • Payments
    • Contact forms
  • Login
  • Get Formidable Forms

Why is my JavaScript not working? (i.e. datepicker, calculations, conditional logic...)

Last Updated: June 26, 2021

Knowledge Base → Installation & Getting Started → Frequently Asked Questions → Why is my JavaScript not working? (i.e. datepicker, calculations, conditional logic...)

Javascript not working in your forms? Formidable uses JavaScript extensively to provide a better user experience. Unfortunately, there are many themes and plugins that aren't written to WordPress standards. Some don't include the hooks for loading JavaScript, or they cause JavaScript errors on your site which prevent features like conditional logic, calculations, date fields, etc. from working correctly.

Formidable Forms is the best WordPress Form Builder plugin. Get it for free!

How to fix a JavaScript error

If you are having trouble, the first step is to identify where the issue is coming from. Below are troubleshooting steps that you could follow.

  • You can either go through and deactivate your theme and plugins one by one until you find the one causing problems, or use your browser JavaScript error console to point you in the right direction (see below). The most common JavaScript errors originate from themes that do not load jQuery correctly for WordPress. jQuery should never be hardcoded in your theme header but should be loaded with wp_enqueue_script.
  • If you have the same form included multiple times on the same page, please note that this isn't currently supported since Javascript-related features won't work correctly.
  • If there are no JavaScript errors on your page, your theme may be missing the wp_footer hook.
  • If your form is not working properly, jQuery might be loading after the Formidable scripts. Usually, this is only a problem if there are custom jQuery scripts added in the form customized HTML or inside the form. If you run into this issue, you can use a plugin like Simple Custom CSS and JS to add your custom jQuery for the form.

After you find the culprit, you will likely need to contact those who wrote the code and ask them to update it.

How to find JavaScript errors

You can find JavaScript errors in any browser with a variety of tools. Below are links to the WordPress Codex with instructions on how to find javascript errors with the browser you are using.

  • Firefox
  • Internet Explorer
  • Chrome
  • Safari
  • Opera

If you see the error: "Uncaught ReferenceError: frmFrontForm is not defined" this means the Formidable javascript is failing to load properly. Start by finding the source of the conflict.

If you go through these steps and are not able to solve the problem, please post in the help desk and include a link to your form.

Symptoms of a JavaScript error

There is a wide range of issues you may see if another plugin is causing an error. Here are a few of the most common.

  • The fields that should be hidden with conditional logic are shown on page load. In some cases they will hide after making selections in the form.
  • The Bootstrap Modal will not open when the link is clicked. Sometimes it may open and show only the grey overlay on the screen.
  • The datepicker will not open when clicking on a date field.
  • The date field and conditional logic only works on the first form and not on the other forms on the same page.
  • How to fix a JavaScript error
  • How to find JavaScript errors
  • Symptoms of a JavaScript error
Categories
×

Categories

  • Installation & Getting Started
  • Account Management
  • Forms
  • Entries
  • Views
  • Styles
  • Importing & Exporting
  • Add-Ons
  • Extend Formidable Forms

Using WordPress and want to get Formidable Forms for free?

Get Formidable Forms Lite Now

You do not have permission to view this form. Maybe you need to log in?

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Take on bigger projects Right Now

Get the tools you need to revolutionize your workflow and architect a masterpiece. Build the most advanced WordPress forms and actually use the data you collect in meaningful ways.

Get the most advanced WordPress form plugin and the only form builder with integrated Views.

Get Formidable Forms Now

Resources

  • Community
  • Affiliates
  • Contact
  • Free Online Form Builder

Top Features

  • Application Builder
  • Calculator Forms
  • Surveys & Polls
  • Quiz Maker
  • Form Templates
  • Application Templates
  • Directories
  • Donation Plugin

Company

  • About Us
  • Giving Back
  • Careers
  • Newsletter
  • WP Tasty
  • Nutrifox

Copyright © 2023 Strategy11, LLC. Formidable FormsĀ® is a registered trademark Strategy11, LLC.
Privacy Policy | Terms of Service | Sitemap

Join 300,000+ using Formidable Forms to create form-focused solutions fast. Get Started See User Reviews