Home › Forums › Classic DFFS › Stuck loading
Tagged: Form Load
- This topic has 5 replies, 2 voices, and was last updated 3 years, 3 months ago by Alexander Bautz.
-
AuthorPosts
-
-
September 15, 2021 at 09:39 #34503
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, 3 months ago by Ivan Wilson.
-
September 15, 2021 at 10:32 #34506
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
-
September 20, 2021 at 03:19 #34511
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.
-
September 20, 2021 at 15:35 #34515
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
-
-
September 21, 2021 at 00:49 #34519
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>
-
September 21, 2021 at 11:23 #34521
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
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.