February 27, 2019 at 00:11 #23986
Alex, we discovered that if the Title field of an item contains an apostrophe, the Display Form is blank. Removing the apostrophe in the title causes the Display form to render correcetly. This appears to be a bug.
February 28, 2019 at 00:19 #23998Alexander BautzKeymaster
I did a quick test and could not reproduce it. Do you have any custom code or rules triggering on the Title field?
Do you see any errors in the developer console (hit F12 > Console) when you reload the DispForm with the dev tools open?
July 20, 2020 at 22:10 #30938
Alex; I didn’t respond earlier because the site owner elected to simply change the titles of the offending items, so no follow-up was needed. I have another site owner using a different version of DFFS (18.104.22.168, released 2020-02-02) experiencing the same problem. The DFFS display form will not render for items with an apostrophe in the title.
When I examine the Console after loading the page, I’m seeing a number of errors. Whether they are caused by DFFS or by something else running in our environment I do not yet know. The two likely culprits are
1. a function called “SafeRunFunction” that is undefined (the apostrophe breaks an js statement inside a function called BuildBreadCrumb – probably not yours)
<!– DFFS CEWP Loader – February 02, 2020 –>
I’m attaching a screenshot of the Console errors, and of the code referenced by the second error.
In this case, there are currently 22 items on the list with apostrophes in their titles, and it appears it may be an ongoing challenge since titles contain words like “Don’t”, “Wasn’t”, etc.
If the underlying problem is a bug in SharePoint, not your code, we could perhaps create a workflow that removes any apostrophes from titles on list items.
July 20, 2020 at 22:22 #30941
P.S. In case it matters, the list is using the Item content type.
July 21, 2020 at 08:06 #30943Alexander BautzKeymaster
I’m unfortunately not able to recreate this problem.
Are there any third party code in this page (or the masterpage) other than DFFS?
The first error – referring to a missing ) – might be the start of the problems, but the ‘_spPageContextInfo’ is undefined message makes me wonder if some custom code has been added to the masterpage and is run before the _spPageContextInfo object has been created by the internal SP code.
- You must be logged in to reply to this topic.