Getting SCRIPT5007 when trying to implement a user-friendly survey error message RRS feed

  • Question

  • Hi,

    I am trying to use the code from http://sharepoint.stackexchange.com/questions/64357/friendly-message-when-user-tries-to-take-the-survey-again to show a user-friendly error message when a user tries to answer a survey twice.

    The detection of the user's answer count works, but when the code tries to open the survey by calling the old code (NewItem2Orig(evt, url);) I get an error SCRIPT5007 which says, that tagName cannot be found because of an undefined or null-reference in inplview.js, row 2, column 32309.

    Does anybody know, why this is happening? I actually can't see why it shouldn't work...

    Thanks in advance

    P.S.: The error happens in IE 11, in Firefox the code seems to work

    Tuesday, December 3, 2013 9:37 AM


  • I'm not sure how you get the parameter to execute the NewItem2Orig(evt, url). you can use JavaScript code to first get the button click event script, save it as a variable.

    Then in your rewrite NewItem2 method, else part, set the button click event to the origional event.

    Qiao Wei
    TechNet Community Support

    Monday, January 6, 2014 8:25 AM