Search Results for 'list form'

Home Forums Search Search Results for 'list form'

Viewing 15 results - 241 through 255 (of 1,358 total)
  • Author
    Search Results
  • #34551
    Brian Oster
    Participant

      That was it. Once I hit save on the config for each form type the field list appeared. Thanks.

      #34529
      Richard Gibson
      Participant

        In a DFFS form i have a list of multi-choice items displayed using check boxes. These items are milestones for projects underway. There are 5 different responsible parties for the group of milestones.

        I am trying to find a way to designate ownership by the responsible groups

        My thought was to change the font color for each item in the multichoice list to correspond with each role, but haven’t been able to get that to work. Is that possible? option 1, i used highlightinjg instead of font color to see easier

        if color coding isnt an option, any other way to designate or group the selections in the view? maybe space the items in the dropdown to align with roles. (option 2)

        elliste
        Participant

          Hello, I have a SharePoint list that the New form has been customized with DFFS. In testing, some users see the customizations as expected but others do not see any of them, they do not even see the “enhanced with DFFS” stamp at the bottom of the form. Permissions to the site, list and form have been verified and both users who can see the customization and those who do not have the same permissions and are both using the same version of MS Edge as their browser. It feels like a caching issue on the users machine, however, having the user clear their cache and cookies did not resolve the issue.

          Has anyone else encountered this or have any ideas what may be causing it?

          #34430
          Alexander Bautz
          Keymaster

            Writing more values to the list is just a matter of changing the “data” part like this:

             res = spjs.utility.addItem({"listName":"Favorites","data":{"Title":url, "another_field": "another_value"}});

            You can use getFieldValue(“another_field”) instead of “another_value” in the snippet above to get the value from a field in the current item.

            Please note that the format is different for different field types. If you can tell me which type the fields are in the “My learning list” I can give you and example of how you can write the data object.

            Alexander

            #34413
            Brett
            Participant

              Hi Alexander,

              I’m looking at using this Add to Favorite/Bookmark solution to be used in a list.
              Right now it’s set for a document library, so the value in the Title column shows as: https://sharepointserver.com.au/sites/training/Lists/Courses/71_.000 (71 is the ID)

              The scenario is a list of training courses, which an employee can choose to add them to their My Learning list.
              They can either click a button on the Course Display Form or a click a button next to each item in the List View.

              1: Are you able to modify the code above to push the Course fields (ID, Title, Description, Category, link to course) to the My Learning list?

              2: If it can’t be done from a list view, I’ll try to wire up a vLookup using the Parent ID and Author as a search query.

              I looked at your Workflow button but I’m using SP2016 with Nintex workflows, so it’s very different.

              Thanks for your time,

              Brett

              #34393
              Amal Vellappillil
              Participant

                Hey thank you for the quick work around. This does work with some change in user usage.
                Is there a way to make this as a default on a site collection or site level? This would be great rather than going to each and every list and all its different forms and adding the snippet.

                Or is there a way to load another javascript file whenever DFFS loads? I know there is the “Load these files before executing the Custom JS” feature per list per form level. Wondering if there is a possibility to add something similar on a site or site collection level.

                #34388
                Alexander Bautz
                Keymaster

                  Hi,
                  There is no built in support to handle this, but if you delete the item from within DispForm or EditForm you can clean up by adding this to your custom js:

                  DeleteItemConfirmation = function(){
                      spjs.modal.add({
                          "title": "Delete item?",
                          "html": "Please confirm that you want to delete this item.",
                          "showClose": false,
                          "allowMaximize": false,
                          "resizable": false,
                          "ok": function(){
                              spjs.dffs.getPendingEmails();
                              var idArr = [];
                              jQuery.each(spjs.dffs.data.thisItemPendingEmails, function(i, item){
                                  idArr.push(item.ID);
                              });
                              if(idArr.length > 0){
                                  spjs.utility.updateItem({ "listName": "DFFS_EMail", "listBaseUrl": spjs.dffs.data.dffs_email_baseUrl, "id": idArr, "data": { "Stop": "1" } });
                              }
                              var dRes = spjs.utility.deleteItem({ "listName": _spPageContextInfo.pageListId, "id": spjs.dffs.data.thisItemID});
                              if(dRes.success){
                                  location.href = _spPageContextInfo.webServerRelativeUrl;
                              }
                          },
                          "cancel": function(){
                              // Close dlg
                          }
                      });    
                  }
                  

                  Alexander

                  • This reply was modified 3 years, 8 months ago by Alexander Bautz. Reason: Changed code snippet
                  #34275
                  Alexander Bautz
                  Keymaster

                    Hi,
                    If I remember correctly vLookup only passes the date and not the time so you must use some custom js. Try adding this to your document library EditForm Custom JS:

                    var vLookupParentList = GetUrlKeyValue("parentListGuid");
                    if(vLookupParentList !== ""){
                        var item = spjs.utility.getItemByID({
                            "listName": vLookupParentList,
                            "id": GetUrlKeyValue("parentItemId"),
                            "viewFields":["DateColumn_in_parent"]
                        });
                        if(item !== null && item.DateColumn_in_parent!== null){
                            spjs.utility.setDateFieldFromDateObject("DateColumn_in_child", new Date(item.DateColumn_in_parent.split("T").join(" ")));
                        }
                    }

                    Alexander

                    #34270
                    Jonathan Stamper
                    Participant

                      I can’t seem to figure this out but I have an autocomplete that kicks off on a child form (vLookup). It’s using the rest filter and filtering based on a field populated to it via another child list but shares the same autogenerated ID as the parent list. For some reason, the autocomplete works perfectly when editing a child item. On new form, however, no data returns. Both edit and new are using the exact same ac setup.

                      Not sure it’s doing that or do I need to do the set up different between new and edit form.

                      #34268
                      Keith Hudson
                      Participant

                        Alex, I’m trying to pass a DateTime field (date PLUS time) using vLookup. The date is passing just fine, but the time is not. Here are the details:

                        1. I’m using vlookup on a custom list form to upload documents to a document library, so the dialog form that is opening is the edit form on the document library, since doc libraries do not have a new form.
                        2. I have a Start Date field on my SharePoint list where the action is initiated. It contains date and time. I have added a similar Start Date field to the document library and made sure to set it to accept date AND time.
                        3. In the vlookup settings, I am passing the value of Start Date field from the custom list to the Start Date field on the child document library.

                        I have tried this using v 4.4.4.23 and v 4.4.5.27 of DFFS and it is not passing the time element of the Date Time field using either version of DFFS.

                        #34250
                        Alexander Bautz
                        Keymaster

                          Do you want a redirect after saving the NewForm or EditForm? – if so, to NewForm of the VQ list, or to an existing item?

                          Here is an example that redirects to NewForm – just drop it in Custom JS:

                          function dffs_PreSaveAction() {
                              var sc = getFieldValue("SecondaryCategory");
                              if(sc === "your_target_value"){
                                  spjs.dffs.redirect("/sites/Your_Site/Lists/VQ/NewForm.aspx",false);
                              }
                              return true;
                          }

                          Alexander

                          #34247
                          Paul Heffner
                          Participant

                            I have a form with a filed “SecondaryCategory”. I would like the form to redirect a user to another list, let’s call it “VQ”, when the Secondary category is a specific value.

                            #34235
                            SteveE
                            Participant

                              Here’s some code that will completely hide empty web parts in classic web part or wiki pages.

                              • Right click and inspect “There are no items to view…” Find the web part IDs that you wish to hide when empty.
                              • Add a CEWP with this script, changing the web part IDs:
                              <script language="JavaScript">
                              var pageIsInEditMode = false;
                              if (typeof MSOWebPartPageFormName !== "undefined") {
                                  if (document.forms[MSOWebPartPageFormName]._wikiPageMode !== undefined && document.forms[MSOWebPartPageFormName]._wikiPageMode.value !== "") {
                                      pageIsInEditMode = true;
                                  }
                                  if (document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode !== undefined && document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value === "1") {
                                      pageIsInEditMode = true;
                                  }
                              }
                              if(pageIsInEditMode){
                                  // Is in edit mode
                              }else{
                                  // Not in edit mode
                              if ($("#empty-WPQ12").length){
                              document.getElementById("MSOZoneCell_WebPartWPQ12").style.display = "none";
                              }
                              if ($("#empty-WPQ10").length){
                              document.getElementById("MSOZoneCell_WebPartWPQ10").style.display = "none";
                              }
                              }
                              </script>

                              One thing to note is that sometimes the web part IDs seem to change if you add or delete parts so make sure you pay attention if this occurs.

                              Bonus: If you just want to hide the “There are no items to view…” text and also tighten up empty web parts, use this script:

                              <style type="text/css">
                              .ms-list-emptyText-compact 
                              {display: none;}
                              </style>
                              • This topic was modified 3 years, 9 months ago by SteveE.
                              • This topic was modified 3 years, 9 months ago by SteveE.
                              • This topic was modified 3 years, 9 months ago by SteveE.
                              #34225
                              Jonathan Stamper
                              Participant

                                I’m doing light “data integrity” between what the requestor chooses in the main AC, and what is/isn’t available as a list item in a vLookup/child list. Only Admins can add to the vLookup/child list and I wanted to attempt to auto-update the AC values on the main form to reduce manual updating.

                                Right now, I have it set up where if a requestor adds items in the main AC field, when they save the request, the selections are then created as list items in the child list for additional usage and future reporting opportunities.

                                #34202
                                Harsh
                                Participant

                                  Hello,
                                  I have set up dffs form for SharePoint online list,
                                  So my problem is when user edit any existing item via dffs form and save the items with values, now again if he presses the back button from the browser, some values are changed and goes to different fields.
                                  How can I handle this?

                                Viewing 15 results - 241 through 255 (of 1,358 total)