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.

Form Editor Javascript Error - 1.7.1

  1. Trying to edit/add to existing form but none of the form tools appear and the javascript triggers a nice warning...

    TypeError: Object function (test_var) {
    var r = this.indexOf(test_var, 0);
    return (r!=undefined && (r != -1)) ;
    } has no method 'split' [http://www.edmontondiscgolf.org/wp-content/plugins/gravityforms/js/form_admin.js?ver=1.7.1:988]

    ...because of this error none of the tools exist.

    http://my.bundus.ca/image/3J1R093H1W1c

    Posted 12 years ago on Thursday April 25, 2013 | Permalink
  2. An interesting situation. if you click to add any of the tools to the left, the items in the form regain all their tools. They just dont get them until you do that.

    Posted 12 years ago on Thursday April 25, 2013 | Permalink
  3. Well, the tools show up but you cant use them (none of the links work) and you can't reorder them.

    Posted 12 years ago on Thursday April 25, 2013 | Permalink
  4. Richard Vav
    Administrator

    JavaScript errors usually indicate some kind of plugin or theme conflict can you follow the advice here http://rkt.gs/testing also what version of wordpress are you running?

    Regards,
    Richard
    --
    Just another member of the community helping out where I can

    Posted 12 years ago on Thursday April 25, 2013 | Permalink
  5. You were correct, I was debugging the system over the last hour and figured out that it's "calandarize-it" which is causing the issues. On line 986 of your form_admin.js file it does a for loop through a classes array that created by a split a couple of lines above. Somewhere between that line and the next split the classes array gets a function attached to it (likely global) so in the next split the function can't obviously be split.

    so i fixed it by putting in a simple...

    if(!isNaN(parseFloat(i))){

    }

    ...check right before the "var pieces = classes[i].split('-');" line. seems to have worked, but puts me out of sync with the rest of the world. At least it works.

    Posted 12 years ago on Thursday April 25, 2013 | Permalink
  6. Glad you got it working, thanks for letting us know.

    Posted 12 years ago on Thursday April 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.