New answers tagged

0

You can use this popular jQuery library SPUtility https://sputility.codeplex.com/ with this code example you can hide a specific field SPUtility.GetSPField('% Complete').Hide(); This approach gives you a greater degree of control compared to the CSS selectors method which hides all fields of that class see also: Hide/Show field on list form based on ...


1

You can attach a jslink file (js) to your listview webpart. Here is an example for a similar problem like yours : https://code.msdn.microsoft.com/office/Client-side-rendering-code-2625e5e3 It changes how your webpart is rendered and you can change this for every column.


2

This may because of the SharePoint "Browser File handling" setting. It has to be changed on the SharePoint Centra Admin (or via PowerShell), look at http://sharepoint.stackexchange.com/a/29350/35604 for instance, or here for more details.


2

Looks like content in a CSS :after or :before rule gets the class value. [selector]::after{ content:class } I presume you copy/paste code and not understand what you are doing Start by using current jQuery versions, you are using 4 to 5 year old versions... https://en.wikipedia.org/wiki/JQuery#Release_history ...


0

Is there any chance you could try the "Query string Url" filter connected to your list view web part (with appropriate column)? If you need to, you can also pass the date explicitly in the querystring through JS or jQuery.


1

No 2007 handy but depending on your browser coverage you can easily do that with CSS: .ms-vb-icon a { pointer-events: none } .ms-vb-icon is a sample selector from icons in document libraries, you need to identify how to target the column that contains the link with the thumbnail using your Web Developer Tools/Inspector. ...


0

The original error indeed occurs when digest has been expired or it could not be retrieved ( e.g. SharePoint:FormDigest control is not available on the page) on the page. There are some another issues with the provided example. For updating list item the following parameters need to be specified: method: "POST" headers: "Accept": ...


0

Changed option select, now working $('#test') .append($("") .attr("value",taskItem.Tabn) .text(taskItem.Tabn)); },


0

what do you mean by a "list"? a sharepoint list? you can use JSOM or rest API to store information into sharepoint lists. more information is here


0

using jquery: function disable(){ $("#savebutton").prop("disabled", true); setTimeout(function(){ $("#savebutton").prop("disabled", false); }, 3000); } using javascript: function disable(){ document.getElementById("savebutton").disabled = true; setTimeout(function(){ document.getElementById("savebutton").disabled = false; }, 3000); ...


0

You realize you are using multiple asynchronous functions? I believe that if you stop to perform asynchronous loops within other asynchronous loops, you will laugh solve your problem. I suggest that every asynchronous loop you call a function passing the data to the same continuity to the process. Ride your table only after all finalized loops, so you will ...


0

Try something like this using only jQuery - <script src="/jquery/jquery-1.8.3.min.js"></script> <script> $(document).ready(function(){ $("select[title='AssignedTo']").change(function(){ var selected = $(this).find("option:selected").text(); if(selected == "Commercial") { ...


0

Continuing with SPUtility, you can set a field value by: SPUtility.GetSPFieldByInternalName('ChoiceFieldB').SetValue('Staged'); Note that if the choice list is a lookup, then you have to set the value via the ID of the choice from the source list. I.E. SPUtility.GetSPFieldByInternalName('ChoiceFieldB').SetValue(2);


0

mQuery lacks most of what you require and is being abandoned. Use jQuery if you want that speed to market which it can provide through familiarity. But yes use noConflict mode with SharePoint 2013 and below.


0

Add type="text/javascript" Works for me.


1

I would definitely suggest using jQuery. mQuery is really Microsoft's own implementation of some of the same concepts, but it's for their use. If they documented it and made some sort of contract with us about its functionality and stability, that would be one thing, but they never have. Plus, there's a HUGE jQuery user community; I'd be willing to venture ...


2

On average there are no issues, that is why you won't see many issues posted. Once you get deeper under the hood you might experience problems, but it all depends on your coding style. and no I do not have clear examples where I burned my fingers. noConflict is an easy fix. But lets face it, jQuery is something from the height of the Browser Wars. Now ...


2

Using noConflict should already be a solution. Consider also the possibility to don't use jQuery, where SP built-in mQuery could be sufficient, as very well highlighted by this article: SharePoint JavaScript Context Development Part 6 – jQuery vs SharePoint I really suggest you to read the whole article series because it's very interesting, and it also ...


2

There are a couple of ways to achieve this Option 1: Open your list in SharePoint designer and create a new form based on existing new item form template. Set the form you created as a default form. Now modify this form to meet your requirements by adding javascript/jQuery. You can keep the 10 single line of text fields inside a div and hide it on page ...


2

Yes, SPServices wraps the Lists web service: https://spservices.codeplex.com/wikipage?title=Lists Which includes AddList: https://msdn.microsoft.com/en-us/library/lists.lists.addlist.aspx Once the list is created, you would use UpdateList to add fields or modify other properties: ...


2

Yes, SPServices wraps the Lists web service: https://spservices.codeplex.com/wikipage?title=Lists Which includes AddList: https://msdn.microsoft.com/en-us/library/lists.lists.addlist.aspx Once the list is created, you would use UpdateList to add fields or modify other properties: ...


4

Find id of that WP. Something like WebPartTitleWPQ4. Edit that page and insert script editor WP and add <style> <style> #WebPartTitleWPQ4 h2 { background-color: #000; color: #fff; } </style> EDIT Find where is title. For ex. <style> #WebPartTitleWPQ4 h2 { background-color: #000; } #WebPartTitleWPQ4 h2 span { ...



Top 50 recent answers are included