I don’t have any other code solutions working on that list, only custom css, and that is not on the NewForm.aspx page only a list view. I will try and start on a fresh list and see if that works. Oh, the list I am trying to use this on is a Calendar list. Since I know those can behave differently, do you think that would cause any issues?
I have a CEWP underneath the form that references this txt file. The form worked once initially and created a list configuration item and list. Now it no longer works and pops up with the message I mentioned earlier. Also the “Enhance with DFFS” option that renders below the form isn’t working either. It did work one time and hasn’t since then. I don’t know if its a fluke? I can try blowing away the CEWP and List and again, if you think that might work?
Hello,
Great tool! However I keep getting a pop up message that I need to add a variable _spPageContextInfo = {“pageListId”:”{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}”} to the DFFS_frontend_CEWP.js.aspx on my NewForm.aspx. I have added the variable as…
var spjs__spPageContextInfo = {“pageListId”:”{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}”}
Is this not correct? I cannot seem to get this to work on my NewForm.
I have double checked to ensure my List GUID ID is correct.
Thanks for your help.
Hi Alexander,
Thank you for that information.
In our case, there are several users who do not appear in the list because they are students so they have not and most likely will not log into our Sharepoint environment unlike our users who are staff members. I just need a way for manually entered student names to be stored in the list because currently if I manually type in a user that is not found by the autocomplete system, it will show the student name as blank once saved into the list.
Any advice on how to do this with the code?
Thanks,
Nicole
Hi,
First, DFFS should not be added to the list view – only in NewForm, DispForm and EditForm. vLookup however must be added to the list view if you want the vLookup columns to render there.
The “missing” list tools can be made visible by clicking anywhere inside the “list view table” for the current list – no need to check the “select all”.
The tool you refer to is this: https://spjsblog.com/2012/01/12/bring-back-the-missing-list-tools-menu-in-list-view-with-multiple-webparts/
I have not tested this in SP2013.
Alexander
Hi,
Activate the debug output by appending this to the URL in your list view (or in DispForm):
.../AllItems.aspx?vLookupDebug=1
Add the output (at the bottom of the screen) in an attachment here.
Alexander
This is the console error:
OPTIONS http://_vti_bin/lists.asmx jquery-1.11.1.min.js:4 sendjquery-1.11.1.min.js:4 m.extend.ajaxspjs-utility.js:325 spjs.utility.wrapSoapNewForm.aspx:767 spjs.utility.queryItemsspjs-utility.js:978 spjs_QueryItemsVM1154:1 (anonymous function)
spjs-utility.js:340 Uncaught TypeError: Cannot read property 'match' of undefinedspjs-utility.js:340 spjs.$.ajax.errorjquery-1.11.1.min.js:2 jjquery-1.11.1.min.js:2 k.fireWithjquery-1.11.1.min.js:4 xjquery-1.11.1.min.js:4 m.extend.ajaxspjs-utility.js:325 spjs.utility.wrapSoapNewForm.aspx:767 spjs.utility.queryItemsspjs-utility.js:978 spjs_QueryItemsVM1154:1 (anonymous function)
Hi Alex
I insert an ID column and “/” in “listBaseUrl” and still not working. It tries the search but does not complete, do not return data. This is the console error
NewForm.aspx:794 Uncaught SyntaxError: Unexpected token }
jquery-1.11.1.min.js:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
http://srvintranet/Javascript/jquery-1.11.1.min.js Failed to load resource
spjs-utility.js:340 Uncaught TypeError: Cannot read property 'match' of undefined
http://srvintranet/Javascript/jquery-1.11.1.min.js Failed to load resource
spjs-utility.js:340 Uncaught TypeError: Cannot read property 'match' of undefined
I am having an issue with the way Rich Text and Enhanced Rich Text fields are displaying line breaks in the DispForm. I tested with Firefox 31 and IE 11 and both do not render line breaks correctly.
I am migrating content from one SP2010 list to a new SP2010 list on different sites. The content is in Rich Text fields on both sites. The source list has SPJS v3 and everything displays correctly. The destination list uses SPJS v4 where the line breaks don’t render properly.
I inspected the content in MS Word with the P symbols turned on but I don’t see anything obvious that would break the display. I tried using a Rich Text document as an intermediate step in case there were weird objects or something I couldn’t see and it didn’t change anything.
I would normally not consider SPJS as part of the issue for this, but I noticed that the line breaks display correctly in the v4 EditForm, but not in the v4 DispForm. Is it possible that SPJS is effecting the display?
Thanks!
Rolled back to 4.250 deleted the rule, saved the config. Verified that the config was updated, no rules for disp form anymore.
Back in with unminified 4.253, same error.
Deleted the DFFS config doc for disp form in SPJSDynamicFormsForSharePoint list.
Same error when opening a list item, and the DFFS config link didn’t show..
Checked that the content editor contained the same path to DFFS_frontend_CEWP.html for display form and new form /edit , everything checked out.
Plattform: O365
Browser: IE 11 and Chrome (newest)
Upgraded 4.250 to 4.253, and newest sp-utility.
After the upgrade I got problems with displayform with a special rule (newform and edit hadn’t this rule).
Rule Trigger: “If logged in user is NOT in group with name or ID”
This Value : “GroupA|GroupB”
Error in Chrome console:
“Uncaught TypeError: Cannot use ‘in’ operator to search for ‘164’ in 27;#Dummy Name,#i:0#.f|membership|dummy@dummy.onmicrosoft.com,#dummy@dummy.onmicrosoft.com,#dummy@dummy.onmicrosoft.com,#dummy
query-lastest.min.js:2 rquery-lastest.min.js:2 m.extend.eachVM11730:1 (anonymous function)query-lastest.min.js:2 m.extend.eachVM11730:1 spjs.dffs.getCurrentItemSP13VM11730:1 spjs.dffs.initVM11730:1 (anonymous function)
DFFS 2.53 (also tried 54/55 – same error ) overlay timed out on the displayform, and no link to DFFS config, a regular SP list form was displayed.
Rolled back to v 4.250 of DFFS_backend_min.js and DFFS_backend_min.js, and the display form work fine again.
Using those two files I was able to see the tabs on both the DispForm and EditForm, and I was able to access the backend configuration page, but I also got this alert on my page:
The query cannot be completed because the number of lookup columns it contains exceeds the lookup column threshold enforced by the administrator. Operations that exceed the list view threshold are allowed in the following time window defined by the administrator: Daily, from 8:00:00 PM to 12:00:00 AM .
-
This reply was modified 10 years, 3 months ago by
DCH.
Alexander,
Using the new v4.250/251 version I keep getting the “This Took Forever” message for my DispForm and EditForm. The NewForm works just fine. I searched the installation manual for any setup changes but I didn’t see anything. I didn’t change anything except copied the updated scripts to an existing SP2010 list that used the previous DFFS version v4.2.
Thanks!
I generally do not support customized forms, but here is an small example on how to use this specific solution in a customized form.
The example is not from a SharePoint form, and it is super simple to give you an idea on how you can set it up.
DISCLAIMER: I cannot give any real support on this solution when used on a customized form.
Use this code example in a web part page in your SharePoint site, and ensure you understand the code before trying it in a customized SharePoint form.
<table>
<tr>
<td valign="top">Field 1</td>
<td valign="top" class="ms-formbody" id="myfield1">
<input type="text">
</td>
</tr>
<tr>
<td valign="top">Field 2</td>
<td valign="top" class="ms-formbody" id="myfield2">
<input type="text">
</td>
</tr>
</table>
<script type="text/javascript" src="/DFFS/SPJS/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/DFFS/SPJS/SPJS-Utility/spjs-utility.js"></script>
<script type="text/javascript" src="/DFFS/SPJS/SPJS_Lookup/SPJS-lookup.js"></script>
<script type="text/javascript">
spjs.lookup.intFields = function(){
var a = {};
spjs.$("td.ms-formbody").each(function(){
a[this.id] = this.parentNode;
});
spjs.lookup.data.fields = a;
}
spjs.lookup.init({
"fieldToConvertToDropdown":"myfield1",
"listName":"Tasks",
"listBaseUrl":"",
"optTextFieldInternalName":"Title",
"sortFieldName":"Title",
"filterObj":{
"on":false,
"CAML":null, // If used, the rest of the filterObj settings are disregarded
"fin":"",
"isLookup":false,
"operator":"Eq",
"filterVal":""
},
"dropDownDefaultvalue":"...",
"addYouOwnValue":{
"on":true,
"linkText":"Write your own value"
},
"addToExternalList":{
"on":false,
"customFunction":null,
"linkText":"Add new item",
"saveNewItemText":"Save new item"
},
"debug":false
});
</script>
The “magic” is done in the function “spjs.lookup.intFields” as this overrides the built in function in the spjs.lookup script.
Alexander
Hi,
I have confirmed this bug. It appears when you have duplicate entries for the current form in the configuration list.
I cannot tell exactly why you end up with duplicates, but I will add a check for it in the upcoming release so it will not affect the solution if you somehow manage to get duplicates.
If someone have a clue as to why you end up with duplicates, please let me know.
For now, you must manually remove the duplicate entry in the configuration list by going to /Lists/SPJSDynamicFormsForSharePoint/AllItems.aspx and deleting the oldest configuration for the affected form (look at the “Modified” date).
Alexander