Forum Replies Created
-
AuthorPosts
-
To completely disable DFFS you will have to remove the web part, but to “clear” the configuration for a form, go to the configuration list and rename the “Title” of the list item something like this:
From
/lists/dffsdemo/newform.aspx
to
/lists/dffsdemo/newform.aspx_
This means DFFS will not find the configuration.
Hope this helps,
AlexanderHi,
Ensure you have all the scripts referred correctly in the CEWP. You can try the link in the src attribute in the address bar of your browser to see if you find it (please note that you may get error messages form the files – this is just to verify that the link is correct).Also you can open the developer tools (hit F12 > Console) and look for errors there.
Hope this helps,
AlexanderHi,
Take a look at the latest version of the cascading dropdown solution: https://spjsblog.com/2015/04/15/cascading-dropdowns-now-supports-multi-choice/Let me know how it works out.
Alexander
Hi,
Sorry for the delay. The setup you have tried will unfortunately not work. I have made a change to the cascading dropdown plugin to support multichoice, and will try to find time to publish this during the weekend.Best regards,
AlexanderUnfortunately this is correct. There is no way DFFS can “see” the users in the AD group.
Alexander
Hi,
The only way I can think of is to add this code to the master page of the site – put it at the BOTTOM, right before the closing </body> tag:<script type="text/javascript"> if(location.pathname.toLowerCase() === "/_layouts/upload.aspx"){ if(GetUrlKeyValue("List").toLowerCase() === "4c886136-1a92-4e8f-bf80-17880df177ab"){ // Change GUID to match your library document.getElementById("ctl00_PlaceHolderMain_ctl01_ctl05_UploadMultipleLink").style.display = "none"; } } </script>
Change the path “/_layouts/upload.aspx” to include any subsites – like “/sites/mysite/_layouts/upload.aspx”, (note that the url is in lower case letters) and change the GUID to the library. You may also want to check that the ID of the upload link is correct.
Hope this helps,
AlexanderOh, I forgot – the vLookup script will sense the pdf document type, but will try to add a link to an icon named “icpdf” of type gif for SP2007/10 and type png for SP2013.
If you change the name of your icon to icpdf.gif it should work.
If this is cumbersome, you can override the function that puts in the icgen icon like this (put this below where you include the vLookup script):
spjs.vLookup.imgErr = function(img){ if(spjs.$(img).attr("src").match(/pdf\./)){ spjs.$(img).attr("src","/_layouts/images/pdf16.gif"); // ensure the path is correct }else{ spjs.$(img).attr("src","/_layouts/images/icgen.gif"); } }
Hope this helps,
AlexanderHi,
By default vLookup expects a gif icon for pre SP2013 and png icon for SP2013 when handling PDF files.Does this explain the issue?
Regarding the upload multiple issue: are you using SP2010?
Alexander
Hope you figure it out. Please post back here when you (hopefully) find a solution.
Alexander
Good news: I have recreated the issue. It was caused by the spaces and the hyphen in the URL as this was not properly handled in the script.
I will post an update before the weekend to take care of this issue, but you might be able to use this workaround. Add the following snippet BELOW the scrip tag that refers dffs_frontend_min.js:
spjs.dffs.data.pageId = decodeURI(unescape(location.pathname).replace(L_Menu_BaseUrl,'')).toLowerCase();
Thank you for helping to sort out this bug.
Best regards,
AlexanderNo, I have not, but I guess it should work if you give anonymous users read access to all the lists involved in the configuration (config list and scripts).
Alexander
Can you post the URL from the editing of the configuration of the “NewSite” (from the DFFS backend)?
You can change the domain name of your site to “contoso.com” when posting the URL.
Alexander
April 6, 2015 at 14:21 in reply to: Can this be used for 2 different lookups in the same form? #7360Hi,
You must repeat the entire function call:// First list spjs.lookup.init({ "fieldToConvertToDropdown":["Company"], "listName":"ListA", "listBaseUrl":"/Sites/MySite", ... ... }); // Second list spjs.lookup.init({ "fieldToConvertToDropdown":["Project"], "listName":"ListB", "listBaseUrl":"/Sites/MySite", ... ... });
Alexander
There are a few methods – like the one described here: https://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/
Unfortunately this will not work for SP2013, but you find one workaround in the comments below: https://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/#comment-195397
Hope this helps,
AlexanderI’m glad you sorted it out. Unfortunately you cannot use DFFS with related lists. Have you considered using vLookup?
By the way, DCH most likely had the correct answer, but if you have the ID attribute in the URL you must prefix the “contents” with & like this:
.../DispForm.aspx?ID=2&contents=1
Alexander
-
AuthorPosts