-
Search Results
-
Hi, Im hoping someone can help.
I have used DFFS on multiple 2007 sites in the past, this is the first time implementing into a large list in 2010.
My issue is that there seems to be a problem with one of my rules that causes navigation of the form and its tabs to be incredibly slow. If I turn off all rules it speeds up again, also if I use Google Chrome to access the newform.aspx I have zero issues, its as fast as ever.
There are no errors, just slowness, the offending rule is quite simple, based on a checkbox it unhides a tab and makes around 20 fields mandatory.
Thanks in advance
I’ve previously only used DFFS with lists rather than libraries, and have just run into a problem the first time I’ve loaded it into a library – I’m not sure if I’m doing something wrong or if libraries aren’t fully supported.
Everything works as expected on a plain old editform.aspx, so when editing an existing item in the library DFFS loads and runs normally.
Obviously there is no newform.aspx on a library, so new items are added via an upload.aspx, followed by an editform.aspx to complete the metadata. When I apply DFFS to the editform.aspx and upload a new file I get the error “Missing ID parameter for the list item in the URL” at the point where DFFS loads on editform.aspx – it fails leaving editform completely unmodified.
It looks as though there is an ID for the item in the URL, but DFFS is failing to see it.Upload url (DFFS error) – http://Site/Library/Forms/EditForm.aspx?Mode=Upload&CheckInComment=&ID=8&RootFolder=%2FSite%2FLibrary&Source=http%3A%2F%2FSite%2FLibrary%2FForms%2FAllItems%2Easpx
Edit url (DFFS works normally) – http://Site/Library/Forms/EditForm.aspx?ID=8&Source=http%3A%2F%2FSite%2FLibrary%2FForms%2FAllItems%2Easpx&RootFolder=%2FSite%2FLibrary&ContentTypeId=0x010100964301C572AE224F84A7DC4914E4A5DE
Can anyone offer any ideas as to whether this should work, and if so, what the problem might be?
DFFS frontend 4.350
DFFS backend 4.350
SPJS-utility 1.25
Jquery 1.11.3Thanks
Adam
My situation is i have a cases list and on creating new cases a user will select a customer with drop down. Based on Value customer selected it should read a column in customer list called Service Contract if the value of this column is PO Required then show a notification that says Please note this customer requires a PO to save ticket.
SO i have my main list Cases with a lookup called Customers
I have Customers list which holds the column Service Contract this is a choice field
Ideally i would love to make the PO filed on cases required if this is true and message is displayed not sure if that would be possible.
Any help in the right direction to accomplish this would be great.. thanks..
Topic: SPFieldMultiChoice Problem
Hi Alexanda,
Just using the new release v4.350|CSS version: 4.10 / 4.10|spjs-utility version: 1.25, and I’ve hit an issue with SPFieldMultiChoice fields. These display ok when they are Editable but when I make them read only the choice names disappear and they display like (see attachment). I’ve tried the form in an older version and the multichoice field works fine, it lists the selected items separated by commas.
Kind regards
Ian
Hi,
I am writing a lot of JavaScript, often interacting with the dffs forms when I have a requirement that the rules functions cannot handle yet. Sometimes these requests involve running queries on form load to see if, for instance, an item exists for the current user and this category (where category is a choice field or a lookup). To then read the value I use something like
$(“select[title~=’Category’] option:selected”).text();
The problem is that if I use document $(document).ready(function(){//code here}); it will fire before DFFS has prepared all the columns, or in parallel to it. And I prefer not to use a timeout to resolve this 🙂
To trigger this reliably it would be great if there is an equivalent to $(document).ready but something along the lines of $(dffs).ready 🙂
Is there such an event being fired when the form is loaded that I can tap into from javascript? As there is a form rule for it I suspect there is some status I can use.
In using the lookup function, I had the need to filter the dropdown by the current user. After the gracious help of Alexander, below was the solution.
Hope it helps anyone else with a similar need.
Problem: Need to display a list of facilities for the user to select from, but limit the list to only those they have access to.
Solution: Use the SPJS-Lookup function and filter based on the current user:
Detail:
Field on the form being converted to the function: Facility
I have a custom sharepoint list called UserAccess with two fields:
Facility (Single Line Text)
User (People Picker)We used a custom CAML statement to filter the list based on the current user.
Below was the function call. Also, I was using this with DFFS tabs, so the code was placed in the Custom JS box in the Misc Tab of the DFFS setup. The real magic is the CAML query.
spjs.lookup.init({ "fieldToConvertToDropdown":["Facility"], "listName":"UserAccess", "listBaseUrl":"/sites/Root/Evergreen/crm", "optTextFieldInternalName":"FacilityID", "sortFieldName":"FacilityID", "filterObj":{ "on":true, "folder":"", // Leave empty to search in all folders "CAML":"<Where><Eq><FieldRef Name='User' /><Value Type='Integer'><UserID /></Value></Eq></Where>", "fin":"", "isLookup":false, "operator":"Eq", "filterVal":"" }, "dropDownDefaultvalue":"", "addYouOwnValue":{ "on":false, "linkText":"Write your own value" }, "addToExternalList":{ "on":false, "customFunction":null, // Function name as a string. If a function name is supplied, this will be used in stead of the default function. The function will be passed the argument object as a parameter. "linkText":"Add new item", "saveNewItemText":"Save new item" }, "debug":false });