Stuck loading

Home Forums Classic DFFS Stuck loading

Tagged: 

Viewing 3 reply threads
  • 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 3 years, 2 months 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

        • #34511
          Ivan Wilson
          Participant

            Thanks Alexander, the issue was with HTML in a rich text field. I tried v4.4.5.30, but we got the same issue. We have switched the field to plain text.

            • #34515
              Alexander Bautz
              Keymaster

                I’m glad you got it sorted out. What kind of HTML code was put in the field? – I tried to prevent this problem as mentioned, but it might have been another issue I didn’t foresee.

                Alexander

            • #34519
              Ivan Wilson
              Participant

                Here’s the HTML. Nothing stands out to me as an obvious issue

                
                
                <div class="ExternalClassAE56FDE76E1442AFACD547E287A7ED5E">
                    <p>Please contact the team member, them change the details to 'yes' and then please resubmit the request,
                        thanks.<br></p>
                    <div>
                        <table class="ms-formtable dffs_dispform" border="0" cellpadding="0" cellspacing="0" width="100%"
                            role="presentation" style="margin-top:8px;width:auto;">
                            <tbody>
                                <tr class="spjs_formtable_row">
                                    <td valign="top" class="ms-formbody" width="350px">
                                        <div>
                                            <div>
                                                <div class="ExternalClassD571022CCC384D9EBC038E65EE9A9331">
                                                    <p>Please contact the team member, then change the details to
                                                        'yes' and then resubmit this request,<br><br></p>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table><br>
                    </div>
                    <div>
                        <table class="ms-formtable dffs_dispform" border="0" cellpadding="0" cellspacing="0" width="100%"
                            role="presentation" style="margin-top:8px;width:auto;">
                            <tbody>
                                <tr class="spjs_formtable_row">
                                    <td valign="top" class="ms-formbody" width="350px">
                                        <div>
                                            <div>
                                                <div class="ExternalClassD571022CCC384D9EBC038E65EE9A9331">
                                                    <p>Please contact the team member, then change the details to
                                                        'yes' and then resubmit this request, thanks.<br></p>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table><br>
                    </div>
                    <p><br></p>
                </div>
                • #34521
                  Alexander Bautz
                  Keymaster

                    Thanks, the problem with this HTML is that it contains the class ms-formtable – this made a function in my code a bit confused… I’ll make a little change in the next release to prevent this from causing this error.

                    Alexander

              Viewing 3 reply threads
              • You must be logged in to reply to this topic.