-
Search Results
-
Hi there
We are finally migrating to sp2013 from 2010 and carrying out tests on the new servers. All seems to be working well except redirects from new to display forms. On the new server the following message appears at the top of the display form (a display form with no content, just showing default/typical values)
“DFFS functionality will not be applied because you are attempting to load a non-existing list item (missing ID in the URL).”
I’ve checked that all the scripts on the new server are there and that any absolute referencing is updated to the new server url but can’t find where the problem is.
I’ve also noticed the same message flashes up on the live server before disappearing and the display form appearing as I’d expect.
Any suggestions where I might look?
DFFS Backend/Frontend v4.365
ThanksGerry
Hi,
Not sure if this is the right forum…I want to attach a web part list in an dffs enhanced edit form and use connections to get it to filter to a specific lookup they both have in common. I can setup the connection, but nothing gets displayed. Has anyone else tried this? If so did you have the same issue? or do you know how to fix?
Any help would be greatly appreciated.
Thanks!
LanaHi,
Just upgrading one of the sites I look after. I have 6 lists that I have customised using DFFS, and so I am working my way through upgrading the lists to use 4.365 and the JSLink option. The previous versions I am upgrading from are 4.2 and 4.254 and used CEWP.I also had a test list running 4.2 which was the first list I upgraded and it all worked fine. Taking the plunge, I have started upgrading the real lists, and the first one I did, also worked with no hitches. Unfortunately the 2nd one is not working as expected. What I am getting is the added Site Column, DFFS Loader by SPJSBlog.com, appearing as a column in the form, complete with the “Add this field to activate the DFFS feature” description.
The process I have been using for upgrading the lists, is:
1) Remove the CEWP web parts that held the previous versions DFFS Overlay and DFFS Frontend for all the forms.
2) Add the Site Column, DFFS Loader by SPJSBlog.com
3) View the forms, and go into DFFS and save them.One thing that did happen, is that when I removed both the CEWP on the New Form and Edit Form for the list that I am having problems with, I got an unexpected error. Going back into the form, the CEWP had been removed. I did not have this occur on the Display Form.
Also, the list I am having the issue with has 2 Content Types associated with it: the standard Event, plus a customised Tournament Event, which has some added fields to it. The Tournament Event is set as the default content type, and is visible of the New button. The Event content type is not visible, nor visible on the New button.
When I am adding the Site Column, I get an option to Add to all content types, as well as the option to Add to default view. I am leaving the Add to all content types option checked.
I have tried removing the Site Column and re-adding, and I have also tried running the Update Orphaned Columns option but no difference.
Any ideas as to what I need to do to get the Site Column to act as the link to DFFS rather than just another column on the form?
Regards
JeffThis is a new feature available in DFFS v4.3.67 which builds on the ability to disable rules in specific forms. I had previously configured my Editform to be able to be used in the New & Display form of the same list but had to then import the Edit form config into each form. I also have another list that stores archived items from the main list and had a Display & Edit form on that list which also used that same Editform config. With this new feature, I am now able to share the one Editform config with the other 4 configs and no longer need to import that config into those forms & it works perfectly – just one form config to maintain instead of 5!
I did this as follows to share the Editform from ANY list New or Display form:
1) I created a new WebPart aspx code page in my SharePoint DFFS Folder called “DFFS_frontend_share_config_CEWP.js.aspx” which contains the following code:<script type=”text/javascript”>
// Add DFFS_frontend_share_config_CEWP.js.aspx after OVERLAY Webpart to activate
var listName = document.URL.split(“/”)[6].toLowerCase().replace(/%20/g,’ ‘);
// Auto detect the Archive list to share Main List form – to share another list’s form specify the list names to find & to use instead
if(listName.match(“archivelistname”) !== null){ listName = “mainlistname” }
// Use the Shared EDIT form
dffs_formIdOverride = “/lists/”+listName+”/editform.aspx”;
</script>NOTE: The SPLIT location [6] above may be different as it depends on where the LISTNAME is in your site’s URL Address – mine is after the 6th slash (/) as shown here:
http://sharepoint.company.com/sites/MySite/Lists/MainList/AllItems.aspx2) Next I added a new Content Editor WebPart (CEWP) to the Default Forms that I wanted to Share with the Editform. Note that if you do not want to share a form such as the Newform, do NOT put the CEWP on that default form. Sharing ONLY occurs on forms that have the Share CEWP.
Place the new CEWP below the DFFS OVERLAY CEWP and use the link to the Aspx page created in Step 1 above.
3) Once you do the above, when opened the New/Disp form will Share the Edit form config. You can then DELETE the DFFS config for the New/Disp form.
Hope this helps!
Topic: Attachments
Hi,
Looked through the previous requests and was unable to find anything on this. I have a form where I created the Tabs to show all items in the list. So I did not add any fields….. the Attachments field does not display on the form when I do this. Any way to get the attachments field to show without inputting all the fields on the Tabs section?
Thanks!
LanaTopic: Adding jQuery Script to DFFS
Hi,
I have tried adding your sample script to the Custom JS tab section but it returns an error ‘You cannot use script tags in the custom JS’.
The code I am trying to add is from your previous post as I wanted to see how it works, so from this you will see I don’t have much experience with jQuery, but I wanted to learn how to utilize it with the forms.
Thanks,
Ken
The script I posted in the Custom JS section.
[javascript]
<script type=”text/javascript” src=”/Javascript/jquery-2.2.4.min.js”></script>
<script type=”text/javascript”>
fields = init_fields();var myNewLabel = “<br><div>Here is some custom text added by adressing the formlabel with jQuery!</
[javascript]
<script type=”text/javascript” src=”/Javascript/jquery-2.2.4.min.js”></script>
<script type=”text/javascript”>
fields = init_fields();var myNewLabel = “<br><div>Here is some custom text added by adressing the formlabel with jQuery!</div>” +
“<br><div>You can insert images to:<br></div>”
$(fields[‘MyChoice’]).find(“.ms-formlabel h3”).after(myNewLabel);
// Array of all descriptions – must be the same number of elements as the number of choices in the choice-list
var arrMyChoice = [‘Description for choice 1’,
‘Description for choice 2’,
‘Description for choice 3’,
‘Description for choice 4’,
‘Description for choice 5’,
‘Description for choice 6’,
‘Description for choice 7’,
‘Description for choice 8’,
‘This is the longest: Description for choice 9’,
‘Description for choice 10’,
‘Description for choice 11’,
‘Description for choice 12’,
‘Description for choice 13’,
‘Description for choice 14’,
‘Description for choice 15’,
‘Description for choice 16’,
‘Description for choice 17’,
‘Description for choice 18’,
‘Description for choice 19’,
‘Description for choice 20’];// Call the script that inserts the descriptions
descriptionBeforeChoice(‘MyChoice’,arrMyChoice,300);function descriptionBeforeChoice(FieldInternalName,arrName,widthOfCustomLabel){
$(fields[FieldInternalName]).find(“.ms-formbody”).find(“:checkbox”).each(function(idx){
// Add alternating style to make it easier to follow the lines in the form
var trClass = ”;
if(idx%2==0){
trClass = ‘ms-alternatingstrong’;
}
$(this).before(“<span style=’display:inline-block;width:” + widthOfCustomLabel + “;white-space:nowrap’>” + arrName[idx] + “</span>”)
.parent().css({‘white-space’:’nowrap’})
.parents(‘tr:first’).addClass(trClass);
});
}function init_fields(){
var res = {};
$(“td.ms-formbody”).each(function(){
if($(this).html().indexOf(‘FieldInternalName=”’)<0) return;
var start = $(this).html().indexOf(‘FieldInternalName=”’)+19;
var stopp = $(this).html().indexOf(‘FieldType=”’)-7;
var nm = $(this).html().substring(start,stopp);
res[nm] = this.parentNode;
});
return res;
}
</script>
[/javascript]Topic: Next and previous item by ID
Hello Alexander,
is it possible to add buttons for next and previous items from the list? Could be sorted by ID. I would like it for dispform and editform.Thank You
IvanI’m trying to setup DFFS on a SharePoint 2007 system.
I’ve modified the DFFS_frontend_CEWP.html page to contain the list GUID and the location of the DFFS backend page like this:
<script type=”text/javascript”>
var spjs_dffs_backend = “http://xxxxx/SPJS/DFFS_Backend.aspx”;
</script>
<script type=”text/javascript”>
_spPageContextInfo = {“pageListId”:”{A2866365-0C53-49FA-8148-E9B9EFF5BC7B}”}
</script>When I try to open the DFFS_Backend.aspx page I receive the error message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
The DFFS isn’t loaded when opening the newform.aspx