Forum Replies Created
-
AuthorPosts
-
It looks like you have a bit much going on here. This is a scenario where you would be better off creating a custom function that triggers on the change event on the trigger fields. If you can describe the basic logic you are trying to make, I can make a code example you can use as a starting point.
Alexander
Try turning on the “Debug rules” option in the rules tab and look in the output for any rules looping.
Do you have a lot of rules configured for these triggers? Sometimes you are better off with a custom function if it requires a lot of “logic” to get to your goal.
Alexander
Hi,
Which version of DFFS are you using? Can you add a screenshot of the rule you use to show these extra fields?Alexander
Hi,
Yes, DFFS works only with unmodified, out of the box forms, but your suggested approach should work. Let me know if you have further questions.Alexander
Hi,
This sounds strange. Can you add some screenshots and more details on the DFFS setup?Alexander
Hi,
You can do this by opening your NewForm like this:http://www.contoso.com/Lists/TestList/NewForm.aspx?Source=/Lists/TestList/NewForm.aspx
Alexander
Hi,
You might be better off using a calculated column like this:=YEAR([Start Time])&""
Set the output to “single line of text” and please note the &”” at the end – this is to force the output as text and not a number.
Alexander
Hi,
The field type mentioned is not supported in the function “setFieldValue”, but you can set it like this in the Custom JS section in the Misc tab like this:$(spjs.dffs.fields["fAllDayEvent"]).find("input").prop("checked","checked");
Hope this helps,
AlexanderJanuary 1, 2015 at 09:21 in reply to: DFFS not finding the SPJS-DynamicFormsForSharePoint configuration list #6760Hi,
We have sorted this out by email, but for others experiencing the same:As you have found, this behavior occurs when you have not configured the form with DFFS yet, and therefore no configuration is found. The overlay will time out with “this took forever”, but you can scroll down to the bottom of the form to find the “Enhanced with DFFS” button. When you have saved the configuration, the overlay should behave properly.
Hope this helps,
AlexanderThis will be added in the upcoming release.
Alexander
Hi,
I cannot think of any other method than to set up a rule for a selection of fields that you want them to change, use the trigger “is changed from initial value” and call “showTheSaveBtn” in the “Run these functions.Then add this to the Custom JS:
// Hide initially spjs.dffs.toggleSaveBtn(false); // This function triggers on a rule function showTheSaveBtn(){ spjs.dffs.toggleSaveBtn(true); }
Alexander
Hit F12 and look at the console for errors. Also check the “Document mode” and the “User agent string”. You may also check to see whether or not you have the site in “Compatibility mode” – if it is on, switch it off and the other way around.
There are other reporting the same issue and it might be due to a timing issue and possibly that the user clicks two times on the calendar icon.
Alexander
It looks like this is the datepicker window that resides. Which version of SharePoint are you using, and what browser are you using?
Alexander
This is possible. Add this code to the custon JS in the Misc tab:
(function(){ var b = [""]; b.push("<td class='ms-toolbar' nowrap='nowrap'>"); b.push("<input type='button' class='ms-ButtonHeightWidth' value='Final save' onclick='finalSave();' />"); b.push("</td>"); b.push("<td class='ms-separator'> </td>"); $("input[id$=diidIOSaveItem]:last").parents("table:first").parents("td:first").before(b.join("")); })(); function finalSave(){ setFieldValue("YourFieldInternalName","Completed"); $("input[id$=diidIOSaveItem]:last").click(); }
You must change the “YourFieldInternalName” in the finalSave function.
Alexander
Hi David,
I have tried to set up a site and list as you describe, but I cannot recreate the issue. Can you email me some screenshots of your setup so I can look into it?You find my email in the “About me” tab in the top of the page.
Best regards,
Alexander -
AuthorPosts