Hot answers tagged

10

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

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

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

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

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 HTML/...


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

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> <xsl:value-...


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


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

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


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

You will probably find that the lookup is stored as a link back to the original list item so you will need to remove that additional formatting before you can do a comparison. Something like this should remove any HTML tag around the value: substring-after(substring-before(@Registration_x003a_Hours_x0020_I,"<"),">")


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

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

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

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

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 renders nothing if FormatText is null or empty. Look at the code: protected override void Render(HtmlTextWriter output) { if (!string.IsNullOrEmpty(this.FormatText)) { string[] args = new string[this.Controls.Count]; int index = 0; StringBuilder sb = new StringBuilder(); HtmlTextWriter writer = new HtmlTextWriter(...


1

The MSDN custom field type walkthrough covers a scenario very similar to your own.


1

You will need to create a custom Text field which derives from SPFieldText and override the GetValidatedString method. Her you can put your logic to check if the text entered adheres to the format or not. You may find this link useful: http://www.c-sharpcorner.com/uploadfile/Roji.Joy/creating-a-custom-field-type-for-sharepoint-2010-email-validation-field/


1

You can only save a list definition as a template with the option to include the existing data in that list(include content). You can find out more here. What do you mean by formatting?.


1

You need to click inside row or cell of your ListViewWebPart in design view pane - the Conditional Formatting menu options are context sensitive. It's from my sample made for your last topic:


1

There are several ways to do this, as with all things SharePoint. My favorite is with a Data View Web Part (DVWP), which you can create in SharePoint Designer. Because DVWPs are XSL-driven, you have total control over the markup, structure, and look of the output.


1

You have different ways to do this. The cleanest one would be to modify the xslt attached to your Web Part. This can be done via the user interface in SP 2010, in SP 2007 you would need SharePoint Designer. You'll be able to apply simple formattng or conditional formatting. If the formatting is part of your page/site branding, then Ryan's suggestion works ...



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