Search Results for 'list form'

Home Forums Search Search Results for 'list form'

Viewing 15 results - 1,111 through 1,125 (of 1,358 total)
  • Author
    Search Results
  • #12045
    Gerard Graham
    Participant

      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
      Thanks

      Gerry

      #12043
      Lana
      Participant

        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!
        Lana

        #12014
        Jeff Law
        Participant

          Hi
          I have been using the Lookup function for a while and have it working fine on a library that contains documents received from various companies. The current process is that a file is added to the library, and then the user fills out the form to update the metadata for that new item.
          Company Name is one of the metadata fields, and it is a SLOT which is use the Lookup function on querying the Companies list to get a list of all possible companies in a dropdown which the user can select which one.
          I have now realised that since the company name is the first part of the file name, I could parse the file name and automatically populate the Company Name field for the user. I have now added a “Parse File Name” button on the form which calls a custom function to parse the file name and extract the company name.
          This all works, and it also updates the field but the form field does not get updated. ie the Company Name field still displays the default value of “select company”, but after saving the form, the real Company Name is displayed in the list, and will appear in the form when editing it. (I am using the setFieldValue function to set the company name field)

          I also get a couple of other parameters from the file name, such as a Reference, which is just a SLOT, and also a Document Type (Invoice, Statement, etc) which is a Managed Metadata field, and both of these fields are updated on the form when I use the setFieldValue function to update them.

          So, I am guessing that there is some subtle trick to getting a field which is controlled by spjs.lookup to update if the field changes behind the scenes as it were?

          Regards
          Jeff

          #11997
          jstadick
          Participant

            Alexander, no errors on the page. The page is an add new form for a calendar object, pretty straight forward form.

            I do have row level security on the underlying Sharepoint Calendar list. It also seems that if the user has full access to the lookup object, the list works as expected. If the user has partial access, only access to specific rows, the list will show and then immediately disappear. The list does seem to show the right records (ones the user has access too), but it just disappears almost immediately and you get the little red box beside the field like you had entered an invalid entry.

            Jeff Law
            Participant

              Hmmm. Still working on this. I am gone back to using CEWP method, and now get a completely blank top menu area when I select the List -> Form Web Parts -> Default xxxx Form.

              Makes it a bit difficult to add anything when I have no options to choose from. 🙂

              Will keep looking at this to see if I can get anywhere, and will update, when resolved.

              #11932
              Alexander Bautz
              Keymaster

                Hi,
                Do you mean in DispForm in a DFFS enabled list, or in a list view?

                Alexander

                Jeff Law
                Participant

                  Hi,
                  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
                  Jeff

                  MikeH
                  Participant

                    This 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.aspx

                    2) 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!

                    #11813

                    Topic: Attachments

                    in forum Classic DFFS
                    Lana
                    Participant

                      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!
                      Lana

                      #11765
                      Ken Morley
                      Participant

                        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]

                        #11763
                        Robyn Condra
                        Participant

                          To set up the relationship, the child list does a lookup (lookup field called EA Request ID) to a single line of text field in the parent (SLOT called EA Request ID). When the child list exceeds 5000, the parent form stops pulling in the children and throws an error.

                          #11751
                          Zaruba.Ivan
                          Participant

                            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
                            Ivan

                            Martijn Bleikert
                            Participant

                              I’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&#8221;;
                              </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

                              #11539
                              Alexander Bautz
                              Keymaster

                                Hi,
                                I have looked at it, and will post an updated version over the weekend that lets you set a “filterCAML” in the argument object to pre-filter the list. I have not set it up so you can pull the CAML directly from a list view as this would require an additional query to be run on form load.

                                Alexander

                                #11526
                                Alexander Bautz
                                Keymaster

                                  Hi,
                                  The “Use cookie to remember selected tab” functionality in the Misc tab doesn’t currently apply to NewForm, but you can set your redirect url with the paramenter “sTab=[tabIndex]” – like this:

                                  /Lists/DFFS_TestList/NewForm.aspx?sTab=2

                                  The current selected tab can be obtained from this variable:

                                  spjs.dffs.data.selectedTab

                                  Hope this helps,
                                  Alexnader

                                Viewing 15 results - 1,111 through 1,125 (of 1,358 total)