Hot answers tagged

9

In SharePoint 2013 was introduced a so called Client Rendering Mode (CSR) which represents a rendering engine for list views, list forms and search results. I would recommend you to consider the following approach for your task. How to highlight the rows using CSR Below example demonstrates how to highlight list task rows based on their status ...


7

Resources Windows 7 OS, InfoPath Designer 2013, Character Map, Notepad Preparation In InfoPath Designer, we want to make sure we can see the panes for Fields and Rules on the left. To show the Fields task pane, click the Show Fields button at the very left of the DATA tab on the ribbon. To show the Rules task pane, click the Manage Rules button at the ...


5

Here is an example: var clientContext = SP.ClientContext.get_current(); var list = clientContext.get_web().get_lists().getByTitle("Title"); var item = list.getItemById(id); var fieldValuesAsText = item.get_fieldValuesAsText(); clientContext.load(fieldValuesAsText); clientContext.executeQueryAsync(function (sender, args) { var fieldValues = ...


4

http://sp365.co.uk/2011/09/sharepoint-designer-2010-conditional-formatting/ Here's my sample (http://gyazo.com/d7b4427824dc9796e9990081430ab271.png) for your task. Note the marked areas.


3

You can use jQuery to find the fields and apply css to them with something like: $("h3[class^='ms-standardheader']:contains('Assigned To')").css("font-weight", "Bold"); $("h3[class^='ms-standardheader']:contains('Description')").css("font-weight", "Bold");


2

There is an article in the DUET info on MSDN that shows you how to do this: http://msdn.microsoft.com/en-us/library/gg271157.aspx I think you can do it as follows as well (since an external content type is still a content type; however I have not tested this): - Create your external list from the external content type - Go into the external lists you ...


2

From SharePoint designer: List and Libraries -> Click on list -> Under Views tab -> Read List Right click on the date field -> Edit formula Replace: $thisNode/@*[name()=current()/@Name] With substring-before($thisNode/@*[name()=current()/@Name], ' ')


2

When you customize a view, SharePoint allows you to choose among different styles. In your case, you could try a "Summary View", or a "Boxed View". If none of the out of the box styles suits your needs, then you'll have to use SharePoint Designer for advanced layout customizations. In SharePoint Designer you'll work with a Data View Web Part (SharePoint ...


2

My guess would be that the problem is because all day events do not have a time so it assumes 12am (and probably assumes it as UTC), but then it is likely correcting for either Daylight Savings or for local time zone. If you add a time mask to your TEXT(), it should show you enough for you to figure out exactly what it is doing.


2

You could solve with Java Script. Anoter example in the blog of Laura Rogers @WonderLaura. Link: SharePoint Conditional Formatting Image: Hope it will helpfully!


2

You could capture the formatted number first and then check for a NaN value. <xsl:variable name="myValue" select="format-number(@Probabilit_x00e0_, &quot;###0,%;-###0,%&quot;, &quot;lcid1040&quot;)" /> <xsl:choose> <xsl:when test="string(number($myValue))='NaN'">0</xsl:when> <xsl:otherwise> ...


2

Out of the box, I am afraid there is no option to remove the comma. I have seen similar issues with dates, where a year would be rendered as 2,012 instead of 2012 for example. Unless you have specific requirements, the easiest workaround is to use a text column instead of a number column.


2

This generally boils down to differences between Word's way of representing a document and HTML/CSS's approximations of such. One of the big areas they differ is indentation - SharePoint does its best to migrate the formatting but it doesn't always work. There are a couple things you can do about this: Use another tool to convert the document into ...


2

Start by editing your page using the menu "Site Actions > Edit Page". Select the area you want to edit and the Ribbon enables. In the Editing Tool > Format Text section you have the bullit as you are used to in Word:


2

Just use a decent development tool like Visual Studio. To use the browser for developing is like using scissors for mowing you lawn Hint: a very good, free and lightweigt Development Tool for SharePoint Development on the Server is Visual Studio "Code": https://code.visualstudio.com/ Another one is Notepad++: https://notepad-plus-plus.org/ If you are ...


2

Yes it is possible through new feature of SP2013 called JSLink. With JS Link, users can add a reference to their JavaScript Files as a WebPart property, and Control the Rendering of Fields & Items in Views, List Forms (Display,New,Edit) and event in WebParts.Before you use the js file, it is recommended that the JavaScript file should be Uploaded as a ...


1

Figured it out without any custom code! I just added this to the function: substring-before(field1, "T") This extracted all the text before the "T"!


1

I figured it out. It doesn't work with relative URLs, and so if you are linking to a page or wiki entry on the SharePoint site you must use the full URL starting with the protocol. If you paste or type a full URL it will automatically show you the URL-formatting options, but only if you move your cursor over the URL that you typed. Easy method: Paste ...


1

Create a calculated column and use this formula: TEXT([Phone number],"(000)-000-0000") https://social.technet.microsoft.com/Forums/sharepoint/en-US/ffd7fdde-52f8-4bc7-a3f5-e4102d36fe2e/calculated-column-to-format-phone-number


1

I found the answer, and apologies to all for "answering my own question". Googling more brought up suggestions about using the "XSL Link" option available in the List View Web Part. The examples I found had hand-coded XSL to stuff in there, but you can copy the XSL right out of the view's .aspx page in SPD. Presume you have a view named "Foo" (use your ...


1

Creating a calculated column with the following formula should resolve your issue: = TEXT([Customer Number], "0")


1

You could reset the css class where the style is inherited and work with your or, better, create a custom css class and works with it. If you have a div like this <div class="firstClass secondClass thirdclass fourthclass"></div> and you want change something in one of those css class you can create your css style sheet and then change the ...


1

If your status shows green where there is more than 7 days and shows orange when there are less than or equal to 3 what happens between 4 and 6? I would do this by creating a column in your list with this a calculated field formula; you can then hide the column from views and apply conditional formatting based on it (or show the column as the status flag): ...


1

Enterprise Wiki: enable the Publishing Feature for the Site Collection Create a page layout based on the Enterprise Wiki Page In SPD, edit the properties of the tag PublishingWebControls:RichHtmlField (turn on the Properties panel) There's a whole raft of properties that you can toggle from TRUE to FALSE to allow/disallow Fonts, styles, links, etc. Save ...


1

I would recommend using jQuery validation to accomplish this... please see the following links: http://docs.jquery.com/plugins/Validation http://tinyurl.com/cn6objo Here is a more concrete example: Add a Content Editor Webpart (Set IsVisible to false) to your page Inside, include jQuery and jQuery.Validate scripts //Checks for valid form on save //Pass ...


1

It seems this isn't currently possible without customising the list's XSL directly: http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/1e4ffdeb-8de2-4da6-905a-581e26c7875c as I understood, this option is not available "native" in SPD 2013. Theres is no "design-View" anymore.... When you want to customize the list you have ...


1

so you are trying to remove the tags from input field you just pasted into, correct? if so, you can use the trigger onblur or onfocus event of the input field and use jQuery to return only the text between the tags. Like so, jQuery("#input").text(); $(document).ready(function(){ $("#yourinput").blur(function() { this.value = $(this).text(); ...


1

Even though your calculated column has the correct type ("number") in SharePoint, you may need to explicitly cast the variable to type number. That's much easier than it sounds. Do the following in SPD: Setup your condition and style the way you want them Go into Code view and look for <xsl:attribute name="style"> Change your condition from ...


1

I believe you will have to use a string to represent the number, and a formula like this: concat(substring("0", 1, 2 - string-length(field)), field) The formula needs adjustment if you desire multiple leading zeroes. For example, concat(substring('00', 1, 3 - string-length(field)), field) should work for 2. And so on.


1

If you don't mind: Always obeying the Microsoft SharePoint 2013 way of doing things writing a separate JavaScript file Uploading it somewhere in SharePoint Creating a JSlink connection everywhere you want to execute it or messing around with extra webparts then CSR is the best option If you: Are not afraid to use something that has worked since 2010 ...



Only top voted, non community-wiki answers of a minimum length are eligible