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.

TypeError: jQuery("#input_1_108").mask is not a function

  1. jimbatchelder
    Member

    I'm getting the error TypeError: jQuery("#input_1_108").mask is not a function at http://sanjuanpub.com/tour/reservation-request/ . This is a site just in development. My form doesn't show up at all on this page. If I change the page template from "one column" to "default" (with sidebar) the form shows and works with no errors. I've compared the php and html between the one-column and default source files and there are no differences except for the missing sidebar div in the one-column page code. The form works in Twenty Ten template. All indicators point to a template conflict but I can't find it, and I don't understand why it's throwing a jQuery error on the page when all that is different is no sidebar. Can someone take a look and point me in the direction of the solution?

    Posted 12 years ago on Sunday August 26, 2012 | Permalink
  2. You've found the problem: there is an incompatibility with the theme. The form displayed for me in Firefox, but not in Chrome. You need to inspect for JavaScript or jQuery errors and determine the source of them, then fix them.

    I see this JavaScript error right now:

    Uncaught TypeError: Object [object Object] has no method 'mask'

    on line 212 of the source of that page. That is where the Gravity Forms JavaScript is, but I believe that error is through because of some incompatibility with the theme.

    Can you post a link to a page where the form displays fine?

    Posted 12 years ago on Sunday August 26, 2012 | Permalink
  3. jimbatchelder
    Member

    Thanks for the fast reply. Interesting that my Firefox won't display it but yours does. Mine is version 14.0.1. Mine won't display in IE9, Chrome 21, or Safari 5.1.1 either (on Windows 7 Enterprise). Anyway, I just duplicated the page and assigned the default template to it, here is the link http://sanjuanpub.com/tour/tour-reservation-request-2/ . (It's also a sub-menu under the broken Tour Reservation Request menu item).

    Posted 12 years ago on Sunday August 26, 2012 | Permalink