25

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


20

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


7

The "Add a column" is related to the permissions(full control, design, etc.). Users who have contribute, read or lower access will not see this anyway. Also note this action is found in the ribbon as well.


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


5

You can try this: { "elmType": "img", "txtContent": "", "style": { "width": "80px", "height": "60px" }, "attributes": { "src": { "operator": "+", "operands": [ "https://tenant.sharepoint.com", "@currentField" ] } } } The path might need some adjustment but this should work.


5

Below code works for me: "display": "=if([$CheckoutUser.email] != '', 'block', 'none')" Since it's a user field, you can check email for a blank value ($CheckoutUser.id seems also works). And of course, don't forget to add "Checked Out To" to a view.


3

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


3

Assuming is infopath, you can create a new rule in your "RAM" Field. Select the "RAM" Field Go to properties tab > Manage rules On manage rules window, click "New" > "Formating/Format" Check the checkbox, hide this control. Create a new condition for this rule, something like: if "device" field equals to "Desktop" Or >> if "device" field equals to "...


3

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


3

You have to go the other way around, Not convert your date to Text but convert the text you use to compare to a Date. That will also make it safe to use in any language provided your field IS a Date field IF( [GE Internal Report Receipt] = DATE( 1900 , 1 , 1 ) ,"Complete" ,TEXT([GE Internal Report Receipt],"dd/MM/yyyy") ) Note that ...


3

The date will save in the UTC format internally and on custom forms you have to format and show. If you are using jQuery for your custom form, you can format as follows (new Date("2017-03-30T13:00:00Z")).format("MM/dd/yyyy") If not jQuery, let me know which language you are using I can provide syntax for that. To format this in XSL you can use following ...


3

Using the defined system value, [TODAY], we can calculate the current date for a default by simply adding: [TODAY] To get the day of week, use the WEEKDAY() function: =WEEKDAY([TODAY]) Now we have the day number of the week. Using the TEXT() function we can format it as we please. To get the day of the week, use: TLDR; =TEXT(WEEKDAY([TODAY]), "dddd")


3

Add the following code into script editor web part in list view page. <script type="text/javascript"> (function () { // Create object that have the context information about the field that we want to change it's output render var priorityFiledContext = {}; priorityFiledContext.Templates = {}; priorityFiledContext.Templates.Fields ...


3

Yes, it is possible. You can use View Formatting in Office 365 to color the rows based on the Status field. Use below JSON code to color the rows in your list: { "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json", "additionalRowClass": "=if([$Status] == 'Done', 'sp-field-severity--good', if([$Status] == 'In ...


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

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

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


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

Microsoft disabled all this in versions 2016 and later, it still works in older SP version and non-Modern Experiences See: June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back Original answer: If you don't mind: Always obeying the Microsoft SharePoint 2013 way of doing things ...


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

Create a rule in RAM field. FORMATTING RULE The rule condition should be if Drop Down is equal to scanners OR if Drop Down is Blank. Then check the "Hide this field" option. You may also need to put a clear rule. You will need this if a user, for example, selected laptop then selected a RAM value. Then changed his mind and selected scanners instead. You ...


2

Add Script Editor Web Part to the form with the following type of jQuery code. Note that you will need to get hold of the correct drop down, so the jQuery selector for the drop-down is just a sample: $("input[title='Computer Type']").on("change", function (e) { if ($(this).val() == "Laptop" || $(this).val() == "Desktop") { $("input[title='RAM']...


2

After a lot of searching, the following did the trick for me. This enables text wrapping in the Quick Edit view. .ms-spGrid-HeaderContentStyle div{ white-space: normal; }


2

Unfortunately, the answer provided didn't completely help my situation. We were able to use the CSS provided by EvanC to wrap the column headers but the column itself was still not adjusting. The following CSS to adjust the width of a multi-line field fixed what we needed. .ms-rtestate-field{ width: 100px; } Thanks to EvanC for the original answer ...


2

If you set the column type to Currency while creating the column, then you will get the format you want without any coding. Currency columns are auto-formatted.


2

In SharePoint Online, you should be aware of the JavaScript/CSS customization is not allowed for the Modern Experience list and libraries. Meanwhile, it's allowed for Classic Experience. In case, you are using Classic Experience, you can apply conditional formatting via Jquery in Display form based on a specific field value via the below code: <script ...


2

You can try below CSS it is working on my SharePoint online site. It will hide the last column, .ms-listviewgrid .ms-viewheadertr th:last-child, .ms-listviewgrid tr td:last-child { display: none; }


2

Edit the content editor web part and select "Yes" for the option "Should the Web Part have a fixed height". Then change the value to fix your purpose. Click "Apply" to check the result after each time you change the value.


2

If you do not wish to add style sheet as explain by @JJD then just update your item style sheet as below : <div class="description"> <xsl:attribute name="style"> <xsl:choose> <xsl:when test="(@RAG = 'red')">background-color: red;</xsl:when> <xsl:when test="(@RAG = 'amber')">background-color: amber;&...


2

Try changing your code to this: <script type="text/javascript"> SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() { SPClientTemplates.TemplateManager.RegisterTemplateOverrides({ OnPostRender: function(ctx) { var rows = ctx.ListData.Row; for (var i=0;i<rows.length;i++) { var status = ...


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