Search Results for 'list form'

Home Forums Search Search Results for 'list form'

Viewing 15 results - 1,096 through 1,110 (of 1,358 total)
  • Author
    Search Results
  • #12401

    In reply to: Hide the cancel button

    Alexander Bautz
    Keymaster

      Hi,
      You can use this code to hide the cancel button at the bottom of the form:

      $("input[id$='diidIOGoBack']").hide();

      Use this to hide the one in the banner:

      $("#Ribbon\\.ListForm\\.Edit\\.Commit\\.Cancel-Large").hide();

      Alexander

      #12393
      Tony Bowes
      Participant

        I’m wishing to set an additional field related to the field selected in the lookup list. is this possible?

        EG: On my form I have Client and Approver fields. In the client list I have Clients and their Coordinators. I want to select the client from the client list, but also set the approver to be the coordinator of that client at the same time.

        Jeff Law
        Participant

          Hi,

          Finally getting back to this issue. I have a work around so that I can now edit the default forms.

          One question, I have is whether there is any issues configuring a site to use both methods, jslink, and cewp, for different lists? I have some lists configured with the jslink, as that is my preferred way of doing things, but as some lists aren’t working with the jslink configuration, I am going to use the cewp for those.

          Regards
          Jeff

          #12309

          In reply to: Dialog Max width?

          Alexander Bautz
          Keymaster

            1: There is currently no built in method to do this. My best advise would be to disable opening in a dialog. You can however call one of the built in dialog methods from the Custom JS, but they are not consistent between different SP versions – look here for some possible methods: http://sharepoint.stackexchange.com/questions/87392/maximize-modal-dialog-on-sharepoint-2013

            2: Use this in the custom css (example from SP2013 – may need to change the container id form SP 2010):

            #s4-ribbonrow{
                display:none;
            }

            3: Use this in the custom css (example from SP2013 – may need to change the container id form SP 2010):

            #Ribbon\.ListForm\.Display\.Manage-LargeMedium-1-2{
                display:none;
            }

            Alexander

            #12245
            Artaker
            Participant

              Hi,

              is there a way to create a print view without adding a new tab?

              In my form I have multiple tabs, which is nice read and also edit but not when it comes to print out the whole item. Specially since some users don’t have permisions to see every tab. (I can’t go over the list view since the item has too many lookup fields, and they only want to print one item formatted as it is.)

              In the Email and Print configuration I can configure to print the active tab, not all tabs available. Is there such an option already somwhere, or any easy way to achieve this?

              Thanks

              best regards,
              Nicole

              • This topic was modified 8 years, 10 months ago by Artaker.
              #12185
              Keith Hudson
              Participant

                My current gig is a migration from SP2007 to SharePoint Online for a low-maturity organization. (They have only used SharePoint for document sharing in the past). They seem interested in learning how to build more advanced SharePoint solutions. I’d love to demo DFFS for them. Has anyone used/tested DFFS in SharePoint Online? Are there any known issues or limitations?

                Note that MS is rollilng out a “Modern Document Library” experience in SPOnline that uses heavy Javascript development including React rather than dot net development. Apparently in “modern” doc libraries, there is no longer a display form for individual items.

                The naming of some of the settings for a “modern” document library suggests to me that similar changes are going to be coming in future to lists also. Alex, have you seen any of the changes made in “modern” document libraries, and will DFFS be able to be adapted to these changes as they come forward?

                Aglika Tilev
                Participant

                  Hi Alexander,

                  I use accordions in DFFS 4.365 (Cascading Dropdowns 3.5.27). On the first load of the DispForm the values of some fields get not displayed, on the second load they do.
                  First I associated the problem with the cascading dropdowns, but I reproduced the issue on a text field from the current list with a non-lookup value.
                  Do you have any hint for me?

                  Thanks a lot and best regards
                  Aglika

                  #12157
                  Alexander Bautz
                  Keymaster

                    Hi,
                    If you want to insert the username and date by code and refresh the page (most likely in DispForm) you can add this code to the custom js textarea:

                    function myCustomApproveFunction(){
                        var data = {}, today = new Date(), res;
                        data.PeoplePicker1 = _spPageContextInfo.userId;
                        data.DateColumn1 = today.getFullYear()+"-"+(today.getMonth()+1)+"-"+today.getDate()+" 06:00:00";
                        res = spjs.utility.updateItem({"listName":_spPageContextInfo.pageListId,"id":spjs.dffs.data.thisItemID,"data":data});
                        if(res.success){
                            alert("Approved!");
                            location.href = location.href;
                        }else{
                            alert(res.errorText);
                        }
                    }

                    You must change “PeoplePicker1” and “DateColumn1” to your own field names.

                    Then add this to a html section in one of your tabs:

                    <input type="button" value="Approve item" onclick="myCustomApproveFunction();return false;">

                    If you however wants to insert this information when doing a “hand editing” of the item in EditForm (to automate filling the PP and the date picker) you can use a rule and the “Set field value” option.

                    Hope this helps,
                    Alexander

                    #12151
                    Alexander Bautz
                    Keymaster

                      Hi,
                      Did you try using the overlay code from an older version of DFFS? – also, you could try the latest version from the BETA version as there might be an issue with “addEventListener/removeEventListener” and “attachEvent/detachEvent” in IE 8:

                      <!-- 
                      	DFFS overlay for CEWP version
                      	Version: June 08, 2016
                       -->
                      <style type="text/css">
                      table.ms-formtable{
                      	position:relative;
                      	left:-10000px;
                      }
                      #dffs_formTableOverlay, #dffs_loadingOverlay{	
                      	width:10000px;
                      	height:10000px;
                      	overflow:hidden;
                      	background-color:#f5f5f5;
                      	position:fixed;
                      	top:0px;
                      	cursor:default;
                      	background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAALElEQVQIW2NkwALOnDnznxFdHCRoYmLCiCIBEwQphksgC8Il0AXBEtgEQRIAsDsXagWOqrQAAAAASUVORK5CYII=);
                      	z-index:8888;
                      }
                      #dffs_loadingOverlayInner{
                      	font-size:18px;
                      	text-align:center;
                      	color:#444;
                      	z-index:9999;
                      	position:fixed;
                      	top:100px;
                      }
                      </style>
                      
                      <div id="dffs_formTableOverlay"> </div>
                      
                      <script type="text/javascript">
                      // Change this to have your own overlay message - you can use HTML
                      var dffsLoaderOverlayText = "Loading...";
                      
                      /******** No changes below this line ********/
                      if(document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value !== "1"){
                      	(function(){
                      		var div = document.createElement('div'), o = document.getElementById("dffs_formTableOverlay"), w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, rHandler;
                      		div.id = "dffs_loadingOverlay";
                      		div.innerHTML = "<div id='dffs_loadingOverlayInner' style='width:"+w+"px;'>"+dffsLoaderOverlayText+"</div>";
                      		document.body.insertBefore(div, document.body.firstChild);
                      		// Center loader image
                      		rHandler = function(event){
                      			w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
                      			try{
                      				document.getElementById("dffs_loadingOverlayInner").style.width = w+"px";
                      			}catch(ignore){
                      				// Nothing
                      			}					
                      		};
                      		try{			
                      			window.addEventListener('resize', rHandler);
                      			setTimeout(function(){
                      				window.removeEventListener('resize', rHandler);
                      			},3000);
                      		}catch(ignore){ // IE8
                      			window.attachEvent('onresize', rHandler);
                      			setTimeout(function(){
                      				window.detachEvent('onresize', rHandler);
                      			},3000);
                      		}
                      		if(o !== null){
                      			setTimeout(function(){
                      				o.parentElement.removeChild(o);
                      			},500);
                      		}
                      		setTimeout(function(){
                      			var oDiv = document.getElementById("dffs_loadingOverlay");
                      			if(oDiv !== null){
                      				oDiv.innerHTML = "<div style='font-size:20px;width:"+w+"px;text-align:center;padding-top:100px;'>This took forever!<span style='font-size:12px'><br>Click to close this overlay.</span></div>";
                      				oDiv.onclick = function(){
                      		   			this.parentNode.removeChild(this);
                      				};
                      			}
                      		},10000);
                      	})();
                      }else{
                      	var o = document.getElementById("dffs_formTableOverlay");
                      	if(o !== null){
                      		o.parentElement.removeChild(o);
                      	}
                      	setTimeout(function(){
                      		document.querySelectorAll("table.ms-formtable")[0].style.position = "static";
                      	},500);
                      }
                      </script>

                      Alexander

                      #12147
                      Lana
                      Participant

                        I get the connection made, and the list column headers show on the page, but the list shows as empty. It does not display the connected Item information. vLookup is great for display only. I want them to edit the connected list. I thought of a work around, but I don’t like it. I have added a column to the list I want connected with the persons name in the assigned to. The reason that I dislike this solution is that it displays everything they are assigned to, not just the specific item which the form is for. The same thing if I input a link to a view of the list based on assignment. These will work, but are not ideal….

                        #12129
                        Alexander Bautz
                        Keymaster

                          Could you try using autocomplete version from this BETA release

                          I have not addressed this issue directly, but if you load your form with acDebug=1 appended to the URL like this “/Lists/DFFS_TestList/NewForm.aspx?acDebug=1” you should get the result of the query written to the console (you must have the developer console open – press F12 > Console).

                          Not sure if this will actually do any difference, but if you could test it we can take it from there.

                          Best regards,
                          Alexander

                          #12094
                          Chris Diltz
                          Participant

                            I can’t seem to figure out the correct argument for a date formula. I want to return list records where a date column equals Today-1 (yesterday). Any know how to do this?

                            #12071
                            Gerard Graham
                            Participant

                              The list is a project register. The first few fields are completed then the record is saved allowing child records in the form or outputs to be added via a vLookup.

                              Am I right in thinking that the solution we use in 2010 doesn’t work in 2013 and that is why I’m encountering the message now?

                              The list is pretty stable so moving to the solution you suggest shouldn’t be a problem.

                              Regards

                              Gerry

                              Scott Branch
                              Participant

                                I have just installed DFFS in a new SP 2010 environment. I have followed the installation directions as precisely as possible. At launch of my list form, I see the overlay background image but nothing else ever appears (see attachment). If I remove the CEWP for the Overlay on the form, I do get the DFFS link on the bottom of the form to modify the forms and it does bring me into the setup pages. Any ideas why the overlay page is not completing?

                                Attachments:
                                #12050
                                AdamP
                                Participant

                                  Not a problem or question from me for a change – just a share of how we’ve implemented Alexander’s Hit Counter and Star Rating for SharePoint into a DFFS enabled list.

                                  We were asked by a user to provide some stats on views of list items. In the past I’ve implemented the hit counter exactly as per the blog post, but having a DFFS enabled list I thought we could save some effort, and avoid having to deal with loading jquery and SPJS Utility more than once.

                                  The hitcounter list is set up exactly as described in the blog post, and the HitCounterAndStarRatingForSharePoint.js file is stored in a convenient library.

                                  We then added the hitcounter code to the custom JS area in DFFS backend;

                                  $.ajax({
                                  url: “/sites/StyleLibrary/HitCounterAndStarRatingForSharePoint/HitCounterAndStarRatingForSharePoint.js”,
                                  dataType: “script”,
                                  cache: true,
                                  async: false,
                                  });
                                  var argObj = {counterListName:’HitCounter’,
                                  counterListBaseUrl:’/sites/’,
                                  countHits:true,
                                  hitCounterVisible:true,
                                  countOneHitPerUser:false,
                                  countOneHitPerUserPerDay:false,
                                  hitSuffix:[‘Hit’,’Hits’],
                                  isDispForm:true,
                                  activateRating:true,
                                  starImageSrc:[‘/sites/stylelibrary/HitCounterAndStarRatingForSharePoint/star_off.gif’,
                                  ‘/sites/stylelibrary/HitCounterAndStarRatingForSharePoint/star_on.gif’,
                                  ‘/sites/stylelibrary/HitCounterAndStarRatingForSharePoint/star_selected.gif’],
                                  starCount:5,
                                  starMouseoverArr:[‘Very poor’,’Poor’,’Good’,’Very good’,’Fantastic’],
                                  oneRatingPerUser:false,
                                  ratingCountSuffix:[‘Vote’,’Votes’],
                                  alreadyRatedMouseover:”You have already given this item {starCount} stars!”,
                                  debug:false};
                                  hitCounter(argObj);

                                  The code can probably be tidied up, but it logs hits nicely to the hitcounter list, and if you want the display of hits and ratings on the item you simply add

                                  <span id=”hitAndLike”></span>

                                  to the form in the location where you want it to appear.

                                Viewing 15 results - 1,096 through 1,110 (of 1,358 total)