Dynamic Forms for SharePoint: Now with field tooltip

Change log
June 03. 2013
Changes in v2.981

  • Added Danish date format (LCID 1030).
  • Added option to arrange multilookup columns vertically.
  • Changed the identifier for the headings to prevent them from getting a new ID when they are moved or another heading is deleted.
  • Fixed a bug setting a multichoice column as mandatory using the fill-in option.

Multichoice columns vertical:
IMG

May 20. 2013
Changes in v2.98

  • Added support for arranging checkboxes (choice columns – allow multiple selections) in multiple columns. You find it under the Misc tab.

This update requires you to update the *.js and the *.css.

May 16. 2013
Changes in v2.971

  • Fixed required field check for multichoice columns.

This update requires you to update the *.js.

May 13. 2013
Changes in v2.97

  • Fixed missing trigger for Currency field.
  • Added option to initially hide a list of fields. This option is found under the Misc tab.

This update requires you to update the *.js.

May 13. 2013
Changes in v2.961

  • Fixed a bug in bringing fields visible when NOT using Tabs.
  • Cosmetics: Hidden the “Edit button” behind an image. Update the CSS file to have it initially hidden.

This update requires you to update both the *.js file and the *.css file.

May 10. 2013
Changes in v2.96

  • Disabled the solution when the page is in edit mode to prevent errors.
  • Fixed a glitch in “reversing” rules when using multichoice checkboxes.
  • Attempted to fix a chrome issue with disappearing scrollbars.
  • Added an option to include an overlay with “Loading, please wait…” to prevent flashing the unformatted form when loading – see details below.

In this release only the *.js file has changed, but if you want to use the overlay, follow the instructions below.

Overlay
IMG

If you have some errors in your setup, or you do not have the latest version of the DFFS solution (2.96+), you will see this message after 5 seconds:
IMG

To use the overlay, place a HTML Form Web part ABOVE the form, and insert this code:

<style type="text/css">
.dffsOverlay{
	font-size:16px;
	padding-top:100px;
	text-align:center;	
	width:100%;
	height:100%;
	background-color:#F5F5F5;
	position:absolute;
	top:0;
	left:0;
	z-index:9999;
	cursor:default;
}
</style>
<div id='dffs_loadingOverlay' class='dffsOverlay'>Loading, please wait...</div>
<script type="text/javascript">
	setTimeout(function(){
		var oDiv = document.getElementById("dffs_loadingOverlay");
		if(oDiv !== null){
			oDiv.innerHTML = "<span style='font-size:20px'>This took forever!<span style='font-size:12px'><br><br>Ensure Dynamic Forms for SharePoint v2.96+ is referred correctly.<br><br>Click to close this overlay.</span></span>";
			oDiv.onclick = function(){
	   			this.parentNode.removeChild(this);
			};
		}
	},5000);
</script>
The article

I have updated the Dynamic Forms for SharePoint solution and incorporated the Form Field Tooltip for SharePoint 2007 and SharePoint 2010 solution.

The DFFS solution still supports SharePoint 2007, 2010 and 2013.

New in this release
Added tooltip:
Config
IMG
Form
IMG

Keep focus on tab through DispForm to EditForm
I have rigged it so that you will keep focus on the same tab when you edit a list item from DispForm.

How to update
You must update both the *.js and the *.css file. Get the latest version of the files from here

If this is the first time you implement this solution, please start with the first article linked above for setup instructions.

Update spjs-utility.js
You should update spjs-utility.js to v1.15 as I have fixed a bug in “getFieldValue” when using “Allow ‘Fill-in’ choices”.

Please comment below if you find a bug – or you like this solution.

Alexander

135 thoughts on “Dynamic Forms for SharePoint: Now with field tooltip”

  1. Alex,
    Using 2.9.5, I have two dropdowns on the same tab and the second dropdown is rendering when you click on it under the first dropdown. In the attached picture when I click on the dropdown that is in the box, it renders underneath the dropdown pointed to by the arrow.
    Very strange.

  2. First of all this is the first time I have started to use your solution and I LOVE it! Great job!

    I have a couple issues/questions that I hope are easy solutions. (FYI, I am not getting any javascript errors or any other types of errors on the page)

    1. I am using IE 8 and the Tooltips are not working. The question mark icon shows but no text. It does appear to work with Chrome

    2. I am trying to hide a list of fields if a user enters any value into a currency field and I cannot get it to work. I have tried greater than 0. I also tried greater than and left the value field blank. Any ideas or assistance for this?

    3. Is there an easy way to hide a list of fields when a new form is opened?

    I hope this makes sense and thank for the help!

    1. Hi,
      I have fixed a bug with the missing trigger for currency fields.
      Use “Greater than : 0” as trigger.

      I could not recreate the IE 8 issue with tooltip. If you have more info I’ll take another look.

      I have added an option to initially hide a list of fields. You find it under the Misc tab.

      Alexander

      1. Thanks much for the updates. I will take a look and see if I still have the tooltip issue after I change the js file.

        Really appreciate the response!

  3. Hi,

    Love this solution! You wouldn’t believe how often users have requested functionality like this, thank you!

    A quick question though. I have a list that has multiple content types where the fields differ content type to content type. However, since I’ve applied your solution, I can’t seem to set the use of tabs for each content type. It seems to set for the default content type and then when other content types are selected from the New menu, none of the content type specific fields so up, only ones that are also set in the default content type.

    I noticed you can do logic in the edit and disp forms related to content type, but is there a way to set fields/tabs per content type on the new form?

    Thanks!!
    Ryan

  4. Hi,

    Great solution. I am having an issue where i deployed the required files to a shared document library with the latest spjs-utility.js file (v1.15)and added the CEW to my list but every time i click on the new item i keep receiving a message that i need to download the latest version of spjs-utility. Any help would be much appreciated.

    thanks,
    Jarret

      1. Thanks Alex. I found the issue appreciate the quick response.

        Regards,
        Jarret

    1. Hi Alexander & Jarret,

      I’m a little behind on your updates and new to the SP/ JS realm. I am getting the same issue Jarret was having but have all the latest loaded. Any suggestions? Jarret, would you mind sharing your fix?

      Thanks!!

      -Ander

  5. Hello,
    Your solutions are fantastic. I am having one issue and have tried everything to fix it. When I use Dynamic Forms on the EditForm on a Published page, I get the SharePoint Publishing Toolbar. It does not happen on a NewForm or a DispForm. I am using SharePoint 2007. I have tried checking in and checking out the page. Do you have a suggestion for preventing the toolbar from appearing?
    Thank you so much!
    Joanna

    1. Hi,
      I have not tested this solution with publishing feature enabled (my 2007 environment is WSS 3.0 and not MOSS).

      Is your page published and visible to other users?

      PS: Thank you for the beer!

      Alexander

  6. I just downloaded 2.98 and it appears to be working well. I am still seeing an issue with a SharePoint 2007 site (Using the default Master Page) and IE 8 not showing the tooltips…

    It is not necesarily that they aren’t showing but they display about 500 px up on the page so you can’t see the tooltip most of the time. Also when you go back to the tooltip after the first time it does not show at all. Any ideas?

  7. Hi,
    Fantastic solution that seems to be getting better by the day – many thanks.
    Now, of course, the question. Is there any way to make the rules conditional on which tab you are using? I have a form where data is entered into a field in tab 1 and then the completed field is shown in all the other tabs (to remind people without them having to flick backwards and forwards). Ideally in the other tabs they would not be able to edit the field (because if they can they will, and if it’s an option they will think they should!), although this is for cosmetic reasons as they can still go to tab 1.

  8. Hi Alex,

    I am getting an issue with this line in DFFS script:

    $(“#onetIDListForm”).find(‘table.ms-formtoolbar:last tbody:first’).append(“”+enterSetupLink+” v”+_spjs.dffs.vDispName+” – Click to Edit”);

    I think I am missing an ‘\’ somewhere on this lne because the remainder of the script is outputted on the screen.

      1. Hi Alex,

        Still no luck and cannot really see the conflict. I changed line 2075 “</script" to "<\/script" and now I do not see the code anymore however when I go into the setup now, it keeps asking me to create a new list and when I say OK, I get a pop up error with [spjs_Addlist] undefined.

        Any thoughts?

  9. Hi Alex

    This just keeps getting better and better – epic work you do!

    Now I have found a small issue in regards to using index number of eg. heading, rules and tabs.

    If I make two headings and, they will be index 0 and index 1. Lets make a rule to only show index 1 for a specific user group and save the form. Everything is great and working just as expected. Later I delete the index 0 heading as its not needed anymore and save the form. The rule mentioned before stops to work. The reason for this is the headings changes index on save to fill the “empty” spot where i deleted a heading. In effect what once was index 1 now becomes index 0 wich would be ok if the rule was changed as well – however it is not πŸ™

    It might not be a big problem if you only use a few headins and few rules, however for larger lists (With many columns) it’s a pain to clean up after a while. Any chance you will be able to fix this?

    //M

    1. Hi,
      The only way I can think of is to go from index numbers to unique names. This would mean that you will have to name the headings using an unique string when they are created, and that this name is used to identify the heading in the rules.

      How does this sound?

      Alexander

  10. On a different note – any change I could get you to include Danish Lcid: “1030”:”d-m-y”

    For nwo I’ve manually edited the file and it works, however theres a great risk I’ll forget it next time i update it πŸ™‚

    //M

  11. Just an idea for a future feature. Being able to choose on which tabs the submit buttin is visible. Even better being able to replace the submit button with a “Next” tab button (until the last visible tab is reached) πŸ˜€

    //M

  12. Alexander, I am having an issue when I upgrade from older versions of the script to one in the 2.9x series. I was using 2.51 on some Lists and when I upgraded there are now several columns that repeat at the bottom of every tab. Have you encountered this before?

    1. Hi,
      When I test a new release I check backwards compatibility with the previous version only. There has been many updates since 2.51, but i think you should be OK if you enter setup and save it.

      Alexander

      1. When I saved the setup, it fixed the EditForm and NewForm, but not the DispForm. When I compare the “blob” between the three forms, the DispForm looks totally different.

      1. I converted another existing list from 2.51 to 2.981 and all the calculated columns that output HTML appear at the bottom of each tab.

      2. Ok, I tested that and there was no change. Then I tried removing Christophe’s script from the DispForm and the issue went away.

      3. Hi, I removed the script as a test, but I can’t leave it that way per user requirements. Is there a way to make them compatible? Or can HTML rendering code by added to your DFFS solution?

      4. Thanks! But unfortunately that didn’t change anything for me. I also tried loading it after the Text2HTML script and it didn’t work either.

      5. Alexander, I’m sorry but I think this update broke the ToolTip feature. I used html tags in my tooltips and now they don’t show up on hover.

      6. Hi,
        I did a quick test here and both plain text and HTML tooltip works for ordinary fields as well as calculated fields rendered as HTML.

        Could there be something else wrong?

        Alexander

      7. The SPJS-FormFieldTooltip congifuration list has all the values in the JSON column. But the DFFS Tool Tip GUI is all blank where the HTML used to be.

        The columns in my form that previously had tool tips still show the tool tip icon on the correct fields, but when I hover over them I get a little empty box.

        I tried to open the configuration form and save it to see if it would reset but that didn’t work.

        I’ll keep looking for clues.

      8. Hi,
        The tooltip solution is now built in and the tooltip configuration is set up in the DFFS solution. The standalone tooltip solution should not be called anymore. You will have to reenter or move the configuration manually to the DFFS solution.

        Alexander

      9. Yep, you got it! I removed the script reference to the stand alone tooltip and everything works perfect. Thanks again!

  13. Hi,
    I created a role that sets [today] value into a Date column, but it’s not working. How can I do when a rule were true, this Date column recieve this function([today]?

  14. Hello Alexander,

    I would like to see whether I can assign as required a managed metadata column using a trigger (e.g. if this document is assigned to a person, then u need to require a protocol number, which is managed metadata).

  15. Alexander, would you consider adding your “Redirect from NewForm to EditForm or custom page” solution to DFFS?

    Also, can there be an option to open the EditForm to the tab that is visible when the user click the Edit button? The default is to open the EditForm to the first tab.

    Thanks for all you do!

  16. Hey Alexander. I’ve set up a rule for my form which states that if a drop-down choice is set to a certain value, a person or group field is visible and required. However, even if I fill in a person in the now required field, it states that I must fill in a person in that field.

    1. Also, I’m having trouble with Multi line text fields (Plain text) not wrapping the text (making the dialog very wide).

      Using the latest version of JQuery (1.10.x) throws an alert saying it’s out of date.

      1. Alexander- This thing is awesome. Thank you!
        Anton- I’m having the same issue you described above. Did you find a solution?

  17. I am having the same problem as Jim A reported above on SP2007. The tooltip is showing too high in the page, I can barely see the last sentence of the text from the tooltip. And also, when I go back to the tooltip the second time, it isn’t showing anything at all. I updated all the files, what else could be the problem?

  18. I have a question about the logged in user in group with ID and logged in user not in group with ID rule options.

    I am unable to get DF to recognize any of the groups I enter. I am copying the SharePoint group name directly from the Group list in SharePoint. Is there some other ID for the Groups I should be using?

  19. Hi Alxander,

    I might have found a bug. Using the latest version.

    When using the option these field are optional (and visible). It works fine with a trigger field on the NewForm, but on the EditForm the fields only show when the trigger field is changed to a different value and than back to the trigger value.

    Kind regards,

    Eric

    1. I have the same problem as you Eric.

      10 SQL server configurations with 200+ attributes – when a user selects a config and 50-120 attributes then appear depending on server config selected everything works brilliantly with NEW, DISPLAY but in EDIT – only the mandatory ones show up. Move the optional items into Mandatory and they all show up. Move back to optional and they disappear from edit.

      TEMPORARY SOLUTION: As stated by Eric, select a different server type (in my case), then attributes are refreshed, select the required server type you originally selected again and all (mandatory, “optional” and hide fields) will appear as they should. Not good for a production system but we can live with that for the time being.

      GREAT TOOL. Looking forward to a fix one day.

      1. Hi Alexander,

        Let me try to explain in more detail.

        On a form I have a ‘Yes/No’ listbox. Initially I configured a rule to trigger ‘These fields are optional (and visible)’ when this listbox has the value ‘Yes’. The optional fields are ‘Initially hidden fields’.

        Let’s say we create a new item, when setting the listbox value to ‘Yes’ the optional fields nicely become visible. Now when editing this item, while the listbox value is ‘Yes’ it does not show the optional fields, they remain hidden unless the listbox value is changed manually.

        When we change the trigger to ‘These fields are required (and visible)’ all works fine. The fields become visible when editing the item.

        Hope this helps to troubleshoot it further.

        Kind regards,

        Eric

  20. Hi Alexandar, one of my colleagues is having an issue with the java, it works fine on my pc so cannot recreate their issue but this is the error messaget hey are getting
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E; InfoPath.3)
    Timestamp: Mon, 8 Jul 2013 12:25:51 UTC

    Message: Object doesn’t support this property or method
    Line: 2926
    Char: 3
    Code: 0
    URI: …/JavaScript/Dyanmic%20Tabbed%20Form/DynamicFormsForSharePoint_v2.js

  21. Trying to use Dynamic Forms with a Business Data column but I keep getting this error:

    Unknown fieldType: SPFieldBusinessData, please ensure you use the function init_fields_v2().

    Any chance support for that column type can be added, or a case to ignore it so it can still be used without rules (currently sets it to read only in the edit form with the error text)?

    Thanks!
    Colin

  22. Hi Alexander: I happened upon a javascript error today using your DynamicForms that I wanted to report to you. I was getting the following error on the page:
    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    Timestamp: Thu, 18 Jul 2013 10:57:08 UTC

    Message: ‘bypassFor’ is null or not an object
    Line: 2068
    Char: 4
    Code: 0
    URI: https://XXX/CodeLibrary/Scripts/DynamicForms/DynamicFormsForSharePoint_v2.js

    In troubleshooting, I looked at one of my trigger rules, which was checking to see if a particular field was not equal to Null. I simply changed that to something else, it the error went away.

    It was an easy fix for me, but just thought I’d pass along to you. Thanks for this terrific solution–nice work!

  23. Hi. You have a magnificent solution here (if I could send you a beer, I would! πŸ™‚

    I’m hoping you can help me understand the “Rules” section. I have the latest version of the solution and all the latest files. Tabs are working and everything. I just don’t understand how to get the rules to work!

    I have 1 form with 3 tabs.
    TAB 1: Basic fields like Name, Date. One field is “required”.

    TAB 2: Has 1 drop down choose yes or no and 1 lookup column.

    TAB 3: Has 2 drop down choice boxes, and 2 y/n radio buttons.

    My issue is this:
    I want to set a rule for the whole thing that:
    1.) TAB 3 is hidden onload unless…
    2.) User selects “YES” from “required” drop down in TAB1.

    Are you able to help me figure this out? I’m having a hard time understanding the logic of the rules and there’s no examples for me to follow I can find.

    Thank you very much!

    1. Just to update on the “Rules”… Perhaps I have something not working because I have tried a number of variations on the Rules and I can’t get any of them to work. ;-(

      1. Well.. another update.. partly good.. partly not sure:

        I was able to finally get TAB 3 to hide onload. And then show when “required field” is YES. So that’s wonderful!

        I have found 2 things that seem not to be working though:
        1.) If user changes his selection of “YES” to “NO”, then TAB 3 does not hide again.

        2.)Completely different issue: After I set configurations, I click “save”. But, because some fields are “required”, the Configurator will not let me out of the page and the SP Ribbon will not change from “Save” to “Stop Edit” like it should. I have to completely abandon the page and go back to my list> Settings>Edit Form Web Part.

  24. Alexander, this solution currently has the Checkboxes in Multiple columns option. Can you add radio buttons?

    I have your older script called “Wrap choice-field in multiple columns: Updated version” but it would be convenient if they were packaged together.

    Thanks!

  25. Hi, love this solution! I ran into one small issue although it doesn’t prevent anyone from using it. Anyways, I have a checkbox field with 12 items in it, as well as the ability for the user to enter his/her own. In the config I have this field setup to display in 3 columns. All works well. Unfortunately, the “fill-in” blank, appears under the 1st column (whereas the ‘Specify your own value’ appears at the bottmo of the 3rd column). Anyway to get them to align properly, one under the other?

  26. We have encountered another timing issue (similar to the one for vLookup) in the 2013 environment. Sometimes we get the alert for error in Custom JS and we have no Custom JS in any of our config files. Pressing OK or cancel and the error goes away and is difficult to reproduce.

    Here are the lines of code that seem to be executing sometimes but difficult to reproduce.

    if(objArr.customJS !== undefined){
    $(document).ready(function(){
    try{
    $(“body”).append(“”+unescape(objArr.customJS)+””);
    }catch(err){
    alert(“There is an error in the Custom JS:\n\n”+unescape(objArr.customJS)+”\n\nPlease enter setup and revise.”);
    }
    });
    }

    1. Hi,
      I have not had the time to further test this in SP2013 and the quick fix would be to comment out the alert to let it “fail silently”.

      I’ll keep this in mind when I get the opportunity to do further SP2013 testing.

      Alexander

  27. Alex,
    In SharePoint 2013, Enhanced Rich Text fields work but not when you have the Append Changes option selected. When you have the Append Change option selected for an enhanced rich text field when you select the field you do not get the enhanced rich text ribbon and when you enter data and save no data is saved and the field box flashes after pressing save. Append Changes works fine for simple multiline text fields. Seems like I recall a similar issue a long time ago in the SharePoint 2010 environment that you fixed.

    1. Hi,
      I tested this and found that if you are using “Rich text (Bold, italics, text alignment, hyperlinks)” and “Append Changes to Existing Text” you experience the behavior you describe.

      If you however select “Enhanced rich text (Rich text with pictures, tables, and hyperlinks)” and “Append Changes to Existing Text” it works as expected.

      Is this correct in your setup as well?

      Alexander

      1. Yes we have the same results — and I think Rich Text is only an option if you have migrated from 2010 site… if you define a new multiline field in SharePoint 2013 the only option is Enhanced Rich Text so this issue is not really worthwhile addressing.

        Thanks for looking into this.

  28. Hi Alex,

    Is there a way to easily copy the settings from one list to another? I have multiple lists that uses the same form, but because of authorisation issues, I had to seperate those lists. It would be nice if I don’t have to apply the same changes multiple times to different lists. Thanks for your hard work!

  29. Hi Alexander,

    When having a heading configured as the 1st row on a form the input cursor is active in the default field but you are not able to type unless you move the cursor to another field and back. Is this a bug?

    Kind regards,

    Eric

  30. Afternoon,

    is there a way to hide the tab heading? I have two tabs for the EditForm and only one is available depending on which group the current user is in.

    Problem is at the top it still shows the heading of the one tab available to the user — I’ve tried hiding it with some CSS but so far nothing has worked!

  31. Afternoon again,

    sorry to ask so many questions but now I’ve got an issue that I can’t resolve — for some reason all of a sudden i’m getting an error on the NewForm.aspx — when I try to go into the Dynamic Form Set up (where it says “click here to edit” at the bottom of the form the page it takes me to is mostly blank and I get the little exlamantion point at the bottom of the IE window…Expanding that says “Object doesn’t support this property or method” and shows line 223 char 3 of the spjs-utility.js.

    I can’t remove this error — I’ve deleted all the .js files and reloaded them back to the library to no effect. I even created a *new* library and a *new* list and re-downloaded the .js files from your site and I’m still getting this message!! This only applies to the NewForm…Disp and Edit work perfectly.

    help? πŸ™‚

    1. Hi,
      I guess you are using jQuery 1.10. In spjs-utility.js there are a faulty version check for jQuery > 1.6

      I will release a new version shortly, but until then change these lines:

      // #1
      if(parseFloat(jQuery.fn.jquery)>=1.6){
      thisField.find('input').prop('checked','checked');
      }else{
      thisField.find('input').attr('checked','checked');
      }
      
      // #2
      if(parseFloat(jQuery.fn.jquery)>=1.6){
      getFieldValueReturnVal = (thisField.find('input').prop('checked')===true)?true:false;
      }else{
      getFieldValueReturnVal = (thisField.find('input').attr('checked')===true)?true:false;
      }

      with this:

      // #1
      thisField.find('input').prop('checked','checked');
      
      // #2
      getFieldValueReturnVal = (thisField.find('input').prop('checked')===true)?true:false;

      Alexander

  32. Alexander,
    Your Dynamic forms works great, but I am having a problem with validating a Start and End date with javascript and Dynamic forms in separate web parts on the same New and Edit Forms. I need to validate the dates to ensure the End Date is not before the Start Date. Once I add the Dynamic forms to a web part on the same form, then my Date validation does not work. Do you have a solution where I can use your Dynamic Forms to accomplish this task and then I could eliminate the use of the other web part?
    Thanks in advance
    Ophelia

      1. Alexander – thanks for the prompt reply. But, I must be missing something. I see where the form says “if this trigger is” – then I put in the qualifier as less than, but “This value” is expecting a specific static value, is that correct? I don’t see where I can compare two fields.

      2. Hi,
        Select “End date” as trigger and hover over the question mark image to see what options you have. In this case you are supposed to select “is less than” and insert {FieldInternalName_Of_StartDateField}

        Alexander

  33. Hi Alexander,

    I’m still stuck with the problem to make these solutions (Cascading dropdowns and Dynamic Forms) work together.. When I add Cascading dropdown webpart under Dynamic Forms, my dropdowns appear in each Tab. Is there anything I can do to fix this?

    Thank you for your support!

  34. Hi Alexander

    First, I’m new to SharePoint and I wanted to say how great this form application is. It is much easier than building customize form on each page.
    I’ve downloaded 3.15 and I love the Dynamic Form for SharePoint. I do have question on the form behavior.
    1- I’ve notice it add an “Edit Item” at the bottom of the view form and that is really handy for editor, although, a user with no rights still see the “Edit Item” … It also change the default behavior of the view ribbon and make the “Edit Item” enable which wasn’t before we add the form scripts. Is there some setting I can change to prevent this behavior?
    2- I have a title page which also contains the search bar (in the browse ribbon). As soon as the form is added to the page, the search bar disappears? How can we keep our search bar.
    3- I wanted to add items before the tabs, I’ve notice, this script only allow item to be after the tabs? Is it easy to implement, can you guide me? On the same train of toughs, is it possible to have other item displayed above the content editor, I wanted to display the title & breadcrumbs, but, anything I add before the content editor adds it under the tabs.

    thx

  35. I was successful in getting the “Dynamic Forms for SharePoint v2.97 – Click to Edit” to appear at the bottom of a new form I’m working with. However, when I click to set-up the triggers, the only thing I can do is set-up a password to restrict edit access on the rules tab. None of the other fields appear for customization. What am I missing?

      1. These are the message I get when viewing the console:

        HTML1202: http://sharepoint3.bankofamerica.com/sites/GCBResearchAccess/Lists/GCB%20%20Global%20Research%20Access%20Request%20Form/NewForm.aspx?dfsetup=1 is running in Compatibility View because ‘Display intranet sites in Compatibility View’ is checked.
        NewForm.aspx?dfsetup=1
        SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.
        NewForm.aspx?dfsetup=1
        SCRIPT438: Object doesn’t support property or method ‘filterNode’
        jquery.min.js, line 19 character 26740

      2. Hi,
        From the error, it looks like you may have an error in the script references. Are you sure you have loaded all the required scripts?

        Which version of jQuery are you using?

        Alexander

  36. Hi Alexander,

    Thanks for this wonderful product. I have a problem while using it. When I click on add a new item for an uncustomized newForm I have this error message :

    [DFFS :spjs.dffs.loadAndApplyRules] : Configuration error.
    Enter setup to revert to last good configuration

    When I enter the setup it says :

    [DFFS :spjs.dffs.getCurrentConfig]: Error detected
    Click OK to load last good configuration.

    When I click OK, it shows me my previous configuration. Any changes I do on the form is never saved.

    Thanks for your help

      1. Yes, I’m using the latest.

        Below the BLOB

        {“userID”:6,”pass”:””,”lastMod”:1382984777239,”data”:{“Votre_x0020_clinique_x0020_appar”:{“0”:{“triggerField”:”Votre_x0020_clinique_x0020_appar”,”operator”:”Eq”,”triggerValue”:”OUI”,”siblingRules”:””,”mandatoryFields”:[function(b){if(void 0===this||null===this)throw new TypeError;var a=Object(this),e=a.length>>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c>>0;if(0===e)return-1;var c=0;0<arguments.length&&(c=Number(arguments[1]),c!==c?c=0:0!==c&&c!==1/0&&c!==-(1/0)&&(c=(0=e)return-1;for(c=0<=c?c:r.max(e-r.abs(c),0);c<e;c++)if(c in a&&a[c]===b)return c;return-1}]}

        lastgoogconfig

        void

        I downloaded the latest version and it shows the same behavior.

  37. Hi Alexander,
    I am brand new to you DFFS. It looks like exactly what I need. Unfortunately I am not able to Save my settings so I am never able to actually see how it functions. I had started with your TabsForSharePointForms which worked great. But the dynamic functionality of the DFFS looks like it will be even better.

    When I click the Save button I get an “Object doesn’t support property or method ‘prop'” message on line 3236 of DynamicFormsForSharePoint_v2.js.

    I am working in Windows 7, IE 11, in a SharePoint 2007 environment. I am working with DFFS ver 2.981, default.css ver 2.98+, spjs-utilities ver 1.16 and jquery.min.js 1.7.2. The code referenced in the Content Link of the CEWP on the EditForm page is this:
    ————————————

    var _spPageContextInfo = {“pageListId”:”{1430AD43-2562-4AF9-A706-06FE744F9B6E}”};

    ————————–
    I know this is an older version, but any help you can provide would be greatly appreciated.

    Thanks,
    Bill

    1. Sorry, the full content of the linked fill is not showing in the message above. Trying again:
      ——————————
      href=”https://www.maderacap.org/intranet/CAPnet%20Resources/default.css” rel=”stylesheet”
      src=”https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js”
      src=”https://www.maderacap.org/intranet/CAPnet%20Resources/spjs-utility.js”
      src=”https://www.maderacap.org/intranet/CAPnet%20Resources/DynamicFormsForSharePoint_v2.js”
      var _spPageContextInfo = {“pageListId”:”{1430AD43-2562-4AF9-A706-06FE744F9B6E}”};
      ——————————

      1. Hi,
        First off I would recommend that you updated to the latest version (v3.346). Secondly you must ensure you haven’t loaded an older version of jQuery somewhere else in the page that overrides the version you load with dffs (v1.72).

        I suspect this is the issue, as the error occurs in this line:

        hideSaveItemBtn = $(cont).find('div.hideSaveItemWrap input:checkbox').prop('checked');

        “prop” is not supported prior to jQuery v1.6.

        Hope this helps,

        Alexander

  38. Alexander,
    Thanks. I did have a reference to an older version of jQuery in the form. Updated that and everything is OK. Very impressed with the easy of defining the tabs and rules. This will definately be part of my development for the ticketing system I am building.

    Again, thanks for the quick response. I will definately be “buying you a couple of beers” once I get everything working. this is great stuff.

    Bill

  39. Hi Alex,
    I am trying to test your DFFS solution on a document list.

    When trying to configure the solution, I can see the tabs, but all the options inside the tabs are mostly gone… for example, the ‘Rules’ and ‘Tabs’ tabs are completely empty!

    I get this error: SCRIPT438: Object doesn’t support property or method ‘filterNode’ (spjs-utility.js, line 247 character 3).

    In the spjs-utility.js, this is:
    spjs_wrapSoapRequest(argObj.listBaseUrl + ‘/_vti_bin/lists.asmx’,requestHeader, content, function(data){
    result.count = parseInt($(data).filterNode(“rs:data”).attr(‘ItemCount’),10);
    result.nextPagingInfo = $(data).filterNode(“rs:data”).attr(‘ListItemCollectionPositionNext’);
    fieldValObj = {}

    I am running SP 2010 and DFFS v3.346 and spjs-utility.js v1.183.

    I would greatly appreciate your help!

    Jon

  40. I am getting the below error(SP2010):

    Object doesn’t support property or method ‘filterNode’
    jquery.min.js, line 2 character 14725

    On my newitem list form jquery.min.js(v1.7.2) file is loading once from master page design and one from my content editor webpart.

    I cannot avoid Master page JQuery instance, because many functionality depending on that JQuery file.

    If i am removing the JQuery instance from CEWP, it’s missing Dynamic form functionality.

    Kindly help me how to fix the issue.

    1. Not sure how your page layout is, but from the symptoms, the jQuery prototype function added by SPJS utility is overwritten because another jQuery version is loaded.

      If you already have jQuery in the master page, you should be able to remove the jQuery call in DFFS and be good to go. If this is not working, there must be something with the order of loading the scripts.

      Can you test this alert in the DFFS CEWP:

      alert(typeof $);
      alert($.fn.jquery);

      What does it read?

      Alexander

  41. I am loading files in CEWP in order:
    default.css->jquery.min.js->spjs-utility.js->DynamicFormsForSharePoint_v2.js

    I tested in CEWP:
    alert(typeof $); result: function
    alert($.fn.jquery); result: 1.7.2

    Finally configuered things are not showing, only Password to restrict edit access with pwdbox showing.
    Below this: 3 buttons are showing ; Delete, Save, Cancel.

    Even i am not able to add rule here.

    Can you please share, what should be the issue?

  42. if i am not reffering again the same jquery(which is used in Master page) inside DFFS CEWP, existing configuration not working + adding new configuration is not showing.

    FYI: this JQuery file is working on other environment, when i am configuring DFFS. Only difference, here no JQuery file reffered in master page.

    1. Which version of DFFS and spjs-utility.js are you using in the two sites? – is it the same? – I’m not sure if this has anything to do with it, but it might be worth looking into.

      PS: you find the version information in the top of the file.

      Have you looked at the latest version of DFFS? – if you are using v2.x it is a good idea to upgrade.

      Alexander

  43. _spjs.utility = {version:1.13,versionDate:”January 1, 2013″};

    _spjs.dffs = {“version”:2.62,”vDispName”:”2.62 BETA”,”versionDate”:”January 05, 2013″,”utilityVersion”:1.13,”error”:false};

    For both site, i am using the same version.

    Error: SCRIPT438: Object doesn’t support property or method β€˜filterNode’

  44. The filternode prototype function is present in spjs-utility.js, and the only reason for it to be missing is that the original jQuery namespace is overwritten by another jQuery file being loaded.

    You can however try to fix this by adding this code to the DFFS CEWP

    $.fn.filterNode = function(name) {
    	return this.find('*').filter(function() {
    		return this.nodeName === name;
    	});
    };

    Alexander

  45. We have been using your product for a couple of months and think it is great! The tooltips and the process to hide/show fields depending on various field contents. Yesterday I modified the first index (0) with 1 field based on a Content Type with minimal fields. All the other indexes reverted to only have those few fields available in the first index and all the tooltips for those extra fields were removed. This morning, I reviewed the All Content screen in Sharepoint and saved it, reviewed the Dynamic Form and all the fields were available again, but I need to reset up the tooltips and add them back to each index. Any ideas? I don’t want this to happen in Production. In the meantime I am going to put the All Content as index (0) and the content with the least amount of fields at the bottom.

    1. Hi,
      I’m not sure I understand exactly what you describe, but if you use content types, DFFS cannot show fields not in the selected content type. In DFFS backend however, you will be able to select these fields, but they will not show in the “frontend” form as long as they are not part of the content type.

      If you have more details, please post a new topic in the forum.

      Best regards,
      Alexander

Leave a Reply