Forum Replies Created
-
AuthorPosts
-
Oh, 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
Hi,
I have made a test like this:Used a subsite under /DFFS/DFFSTemplate to store all script files in a library, and to hold the DFFS_backend web part page.
Then added a site to use as template here: /DFFS/DFFSTemplate/Template
This site is set up with DFFS, and it stores its configuration here “/DFFS/DFFSTemplate/Lists/SPJSDynamicFormsForSharePoint” using this variable in the “DFFS_backend_CEWP.html”:
var dffs_configListBaseUrl = "/DFFS/DFFSTemplate";
In the “DFFS_frontend_CEWP.html” I have these variables:
var dffs_configListBaseUrl = "/DFFS/DFFSTemplate"; var spjs_dffs_backend = "/DFFS/DFFSTemplate/SitePages/DFFSBackend.aspx";
This setup will store the configuration for both the “master” subsite, and the clones created by this template in the same configuration list, and uses this identifier (no subsite path):
/lists/MyList/newform.aspx
Can you verify that this is the same setup you have? – could it be that you have not “centralized” the DFFS_backend?
Hope this helps you sort it out.
Alexander
Hi,
Sorry for the late reply. From the error message it looks like the user does not have access to read the file “jquery-1.11.1.min.js”. You must ensure anonymous users have read access to the library or folder you have this file in.When it comes to enabling anonymous access in general I cannot offer any help, but I’m sure you find other resources.
Alexander
Sorry for the delay. I changed the quotes like this and it seems to be OK:
<a href=\"https://sharepoint/sites/site/Lists/List/View.aspx?View={9398E27A-31BE-4CFA-89B4-837F6F111E36}&FilterField1=Status&FilterValue1={0}\" target=\"_blank\">{0}</a>
Alexander
I’m glad you figured it out.
Alexander
You must give the anonymous users read access to the script location and the configuration list for DFFS.
Alexander
How does the URL you use in the calculation look like?
Alexander
-
AuthorPosts