Home › Forums › Classic DFFS › Diacritics on url
- This topic has 6 replies, 3 voices, and was last updated 4 years, 9 months ago by Alexander Bautz.
-
AuthorPosts
-
-
February 16, 2017 at 17:27 #15665
Hi Alexander,
I found a strange behavior with DFFS (February_01, 2017) when site url contains diacritics (in czech language = ěščřžýáíé). DFFS is not working, it ends on overlay timeout and after click on page it is shown blank form (Save and Cancel buttons only). I use SharePoint Online.
I can remember that you solve it in the past.
Is it possible to fix it?
Michal -
February 19, 2017 at 19:06 #15714
Hi,
I tested now by adding a list named “TěstList” to my site. In the list “SPJS-DynamicFormsForSharePoint” the config is stored as “/lists/tstlist/newform.aspx” and all works as it should.How does it look in your setup and what error messages do you see in the developer console?
Best regards,
Alexander -
February 20, 2017 at 11:59 #15721
Hi Alexander,
maybe I have a clue – I use manally specified location for configuration list. It is in root of web collection (/sites/PWA) and list with DFFS is in subweb (/sites/PWA/TěstList).I have this variable: var dffs_configListBaseUrl = “/sites/pwa”; in both DFFS_frontend_CEWP.html and DFFS_backend_CEWP.html.
The config is stored as “/lists/LISTNAME/editform.aspx” in https://xy/sites/pwa/Lists/SPJSDynamicFormsForSharePoint/Error message from developer console is: “It is not possible to read charAt for non-defined or null link” (see attached picture).
Url “https://xy/sites/pwa/Test diakritiky ě š č ř ž ý á í é/” is encoded as “https://xy/sites/pwa/Test%20diakritiky%20%C4%9B%20%C5%A1%20%C4%8D%20%C5%99%20%C5%BE%20%C3%BD%20%C3%A1%20%C3%AD%20%C3%A9/”
Thanks and best regards
Michal
Attachments:
-
February 23, 2017 at 21:14 #15819
Hi Alexander,
may I ask you for uncompressed version? I will try to debug myself.Michal
-
February 24, 2017 at 00:13 #15826
Hi,
Sorry for the delay. I have fallen a bit behind on emails and forum posts. You can use http://www.cleancss.com/javascript-beautify/ to unpack the file. The function you most likely need to check is “getPageId”.I have tested it here with a list named “Test diakritiky ě š č ř ž ý á í é”, but have the config in the same site so this might be an issue. My list URL looks like this after I have created this list “/DFFS/Lists/Test%20diakritiky/NewForm.aspx”. Maybe your URL accepts different characters because of language settings in your SharePoint instance?
Please let me know what you find, and I’ll fix it if you find the cause.
A possible fix / workaround it so always use a “internal name” of only English characters when creating a list, and then rename the display name of the list afterwards. You may also rename the list in SharePoint Designer to fix the problem.
Best regards,
Alexander -
February 18, 2020 at 13:54 #28730
Hi Alexander,
i had similar issue and found out that problem is with unescape() in function getPageId . I have replaced unescape() with decodeURIComponent() in getPageId and it works without errors now.
Best regards,
Martin -
February 19, 2020 at 09:53 #28736
Thanks for the feedback, I’ll look at it and see if I can make these changes in the next version.
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.