PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

BUG: JS error when choosing Max Chars on a Body Post Field

  1. if I put in a number of minimum characters on this field there is a js error and cause the form not to display. The forms displays and the error is gone if I leave the field empty

    The following error appears on chrome console:

    preview.php:48 - Uncaught TypeError: Object [object Object] has no method 'textareaCount'

    Has anyone else experienced this?

    Posted 8 years ago on Wednesday November 23, 2011 | Permalink
  2. Sounds like the necessary javascript isn't being output on the page.

    Make sure your theme has the necessary wp_head() function call in the header.php AND the wp_footer() function call in the footer.php file of the theme. These standard WordPress hooks are discussed here:

    and here:

    If you are displaying the form using the function call instead of the shortcode then it could be because you aren't enqueueing the necessary CSS and scripts, which is required when using the function call. Because of how WordPress enqueue works, the form function call itself can't enqueue the scripts. You need to use the enqueue function and place it in your themes functions.php file. You can read more here:

    But that is only necessary if you are using the function call to display a form *OR* if your theme is setup in a non-standard way and how the content is being called the shortcode can't automatically enqueue the necessary scripts.

    Another thing to check is make sure you don't have any other Javascript errors on the page.

    Posted 8 years ago on Thursday November 24, 2011 | Permalink
  3. Thanks for the reply, I'll give it a shot, I have not published this form I get the issue on preview - which seems not to show any theme.

    there are no previous js errors on that page

    Posted 8 years ago on Thursday November 24, 2011 | Permalink