Stuck loading

Forums Dynamic Forms for SharePoint Stuck loading

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #34503
      Ivan Wilson
      Participant

      One of our DFFS forms is not loading for certain records. It’s affecting the View and Edit forms. We don’t get any errors, but the form never gets past the “loading” screen.

      I’ve tried debugging the code. It looks like it is getting stuck in the spjs.dffs.init function from DFFS_frontend.min.js. Any time I pause the debugger, this is where it takes me to.

      Here is the subset of the code that it breaks on

      
      
              if (!spjs.dffs.error) {
                  if (spjs.dffs.data.isSP10 || spjs.dffs.data.isSP13) {
                      ExecuteOrDelayUntilScriptLoaded(function() {
                          spjs.dffs.loadConfig()
                      }, "sp.js")
                  } else {
                      spjs.dffs.loadConfig()
                  }
                  setInterval(function() {
                      // This is the line it breaks on
                      jQspjs(".dffs-readonly").each(function(i, a) {
                          b = jQspjs(a).find("td.ms-formbody:first");
                          nTd = jQspjs(b).next();
                          e = b.find("span.ms-formvalidation");
                          c = nTd.find("span.ms-formvalidation");
                          if (e.length > 0 && c.length === 0) {
                              jQspjs.each(e, function(j, s) {
                                  if (jQspjs.trim(jQspjs(s).text()) !== "") {
                                      jQspjs(s).clone().appendTo(nTd)
                                  }
                              })
                          }
                      })
                  }, 2500)
              }

      Any idea why this would happen?

      • This topic was modified 2 days, 14 hours ago by Ivan Wilson.
    • #34506
      Alexander Bautz
      Keymaster

      I have seen some strange issues when someone have cut and pasted the HTML code for an entire DFFS form inside a rich text field in the form. I have made some changes to prevent this in v4.4.5.27. If you use an older version you can try updating your DFFS version.

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.