json
10 TopicsSharepoint online - Guided tours, feature tour, walk throughs
TLDR; Is there a way to create in-app walkthroughs/ guides tours/ feature tours using open source packages like intro.js, chardin.js, joyride, bootstrap, HopScotch, Crumble with Modern SharePoint Online environment? I couldn't find any tutorials for the same. Since I am not a web developer I could not ascertain if this can work with the modern SharePoint Online site pages at all? Long version I am working on intranet design, using SharePoint online. This intranet serves as a knowledge base, a process workflow reference, and a collaborative tool. I am trying to put together a tutorial so that people can understand what the various web parts are. I have tried using ppt, video, sway, word doc but nothing seems to easy because the user needs to open up two different windows and need to simultaneously walk through both of them. That doesn't work at all for the mobile environment. I researched that websites like walkme, whatfix, inline etc. provide subscription services for the same. I am looking for open source free to use alternatives for the same. My researched shows there are several packages that can help with this, Joyride, intor.js, bootstrap etc. But I cannot ascertain if these can be used with the modern SharePoint online site pages. Could someone guide me to a resource that shows how these and other packages can be set up to use within the SharePoint online environment? Do I need to be worried about privacy and intranet content being exposed to third party apps/ developers if I use these plugins? Any other suggestions on creating walkthroughs for SharePoint online environment that work on mobile and desktop? Any other places where I can post this question? My background: I am not a developer but I tinker with a lot of stuff, I generally use python, VBA, and few visual scripting languages for automation for engineering design and reporting. Any help is appreciated. Thanks, AdityaSolved5.3KViews0likes5CommentsSharePoint library choice column formatting
I am trying to format a JSON for a Choice column that has been set to "choice pills". I am trying to change things like font color, background color, border etc. So far trying to do this but doesn't seem to work: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "style": { "flex-wrap": "wrap", "display": "flex" }, "children": [ { "forEach": "__INTERNAL__ in @currentField", "elmType": "div", "style": { "color": "=if(@currentField == 'Sales', '#ff0000', if(@currentField == 'Marketing', '#006aff', if(@currentField == 'Warehouse', '#b882d7','green')))", "background-color": "=if(@currentField == 'Sales', '#FAA0A0', if(@currentField == 'Marketing', '#c1d3f7', if(@currentField == 'Warehouse', '#e4c1f7','#DAF7A6')))", "box-sizing": "border-box", "padding": "4px 8px 5px 8px", "overflow": "hidden", "text-overflow": "ellipsis", "display": "flex", "border-radius": "16px", "height": "24px", "align-items": "center", "white-space": "nowrap", "margin": "4px 4px 4px 4px" }, "attributes": { "class": { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$__INTERNAL__]", "Sales" ] }, "sp-css-backgroundColor-BgCornflowerBlue sp-css-color-CornflowerBlueFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$__INTERNAL__]", "Marketing" ] }, "sp-css-backgroundColor-BgMintGreen sp-css-color-MintGreenFont", { "operator": ":", "operands": [ { "operator": "==", "operands": [ "[$__INTERNAL__]", "Warehouse" ] }, "sp-css-backgroundColor-BgGold sp-css-color-GoldFont", "sp-field-borderAllRegular sp-field-borderAllSolid sp-css-borderColor-neutralSecondary" ] } ] } ] } }, "txtContent": "[$__INTERNAL__]" } ] }Solved3KViews0likes3CommentsClickable Button on Gallery View Document Library
Hello, I have a document library where social media assets are stored. I would like to create a gallery view of the document library that displays a "Download" button, so when the user selects, the file is automatically downloaded to their device. I have figured out how to add the Download button, which works perfectly in the List view. When you switch to gallery view, the button does not display, but I was able to get the button to show up by adding "columnFormatterReference": "[$Download]" to the Format view JSON. However, when the user clicks on the Download button from the gallery view, the file opens. I removed the following JSON code, so the file does not open in a new tab: "customRowAction": { "action": "defaultClick" Now I just need to figure out how to make the "Download" button clickable. Any help would be greatly appreciated. I'm brand-new to JSON and coding in general.Solved4.2KViews0likes9CommentsView Formatting Issue - Grouped Section header not moving when expanding
I'm having an issue with my View Format JSON. I'm attempting to utilize the honeycomb icon view under grouped categories. When I go to expand each group the icons are on a fixed position on the screen and the group headers do not move down. See screenshot below: Here is the code I'm using - can someone see my error? { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "hideSelection": true, "hideColumnHeader": true, "hideListHeader": true, "groupProps": { "headerFormatter": { "elmType": "div", "attributes": { "class": "sp-row-card" }, "style": { "color": "black", "background-color": "#FAF9F9", "flex-grow": "1", "display": "flex", "flex-direction": "row", "box-sizing": "border-box", "padding": "4px 8px 5px 8px", "border-radius": "6px", "align-items": "center", "flex-wrap": "nowrap", "overflow": "auto", "margin": "1px 4px 4px 1px" }, "children": [ { "elmType": "img", "style": { "max-width": "24px", "max-height": "24px", "margin-top": "2px", "border-radius": "2px" } }, { "elmType": "div", "children": [ { "elmType": "span", "style": { "padding": "5px 5px 5px 5px", "font-weight": "500", "font-size": "15px" }, "txtContent": "@group.fieldData.displayValue" } ] }, { "elmType": "div", "children": [ { "elmType": "div", "style": { "display": "flex", "flex-direction": "column", "justify-content": "center" } } ] } ] } }, "rowFormatter": { "elmType": "div", "style": { "position": "absolute", "width": "150px", "height": "150px", "left": "=if(floor(@rowIndex/5) % 2 == 0 , @rowIndex % 5 * 150 + 'px' , @rowIndex % 5 * 150 + 75 + 'px' )", "top": "=floor(@rowIndex / 5) * 125 + 'px'" }, "children": [ { "elmType": "a", "style": { "position": "relative", "display": "flex", "justify-content": "center", "align-items": "center", "width": "100%", "height": "100%" }, "attributes": { "href": "[$URL]", "target": "_blank" }, "children": [ { "elmType": "svg", "style": { "fill": "currentColor", "cursor": "pointer" }, "attributes": { "viewBox": "-150 -150 300 300", "class": "ms-fontColor-themePrimary" }, "children": [ { "elmType": "path", "attributes": { "d": "M130 75 L0 150 L-130 75 L-130 -75 L-0 -150 L130 -75 z" } } ] }, { "elmType": "div", "style": { "position": "absolute", "display": "flex", "flex-direction": "column", "align-items": "center", "justify-content": "center", "cursor": "pointer", "width": "100%", "height": "100%" }, "attributes": { "class": "ms-fontColor-white ms-fontColor-themeLight--hover" }, "children": [ { "elmType": "div", "style": { "font-size": "32px", "margin-bottom": "5px" }, "attributes": { "iconName": "[$Icon]" } }, { "elmType": "div", "style": { "font-size": "14px", "width": "75%", "text-align": "center" }, "txtContent": "[$Title]" } ] } ] } ] } } Thanks!1.5KViews0likes2CommentsHow to add extra formatting to a column?
I am currently working on a list to track different equipment we have on site and each item requires different configurations of servicing, recalibrating and PAT testing. So I have the list formatted that so when you say an item needs just calibrating and servicing, it'll grey out the date where the next PAT test date needs to go to signify that it isn't required. below is the code that SharePoint generates to do this. { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "style": { "box-sizing": "border-box", "padding": "0 2px" }, "attributes": { "class": { "operator": ":", "operands": [ { "operator": "<", "operands": [ { "operator": "indexOf", "operands": [ "[$Doesthisitemneed_x002e__x002e__x]", "Calibrating" ] }, 0 ] }, "sp-css-backgroundColor-BgLightGray sp-css-borderColor-LightGrayFont", "" ] } }, "children": [ { "elmType": "span", "style": { "line-height": "16px", "height": "14px" }, "attributes": { "iconName": { "operator": ":", "operands": [ { "operator": "<", "operands": [ { "operator": "indexOf", "operands": [ "[$Doesthisitemneed_x002e__x002e__x]", "Calibrating" ] }, 0 ] }, "", "" ] }, "class": { "operator": ":", "operands": [ { "operator": "<", "operands": [ { "operator": "indexOf", "operands": [ "[$Doesthisitemneed_x002e__x002e__x]", "Calibrating" ] }, 0 ] }, "sp-css-color-LightGrayFont", "" ] } } }, { "elmType": "span", "style": { "overflow": "hidden", "text-overflow": "ellipsis", "padding": "0 3px" }, "txtContent": "[$Prev_x002e_Calibration.displayValue]", "attributes": { "class": { "operator": ":", "operands": [ { "operator": "<", "operands": [ { "operator": "indexOf", "operands": [ "[$Doesthisitemneed_x002e__x002e__x]", "Calibrating" ] }, 0 ] }, "sp-field-fontSizeSmall sp-css-color-LightGrayFont", "sp-field-fontSizeSmall" ] } } } ] } Now what I want to do is to format the dates that are added to show if they are in date, upcoming or overdue. the code below shows how I achieve this: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "txtContent": "@currentField", "attributes": { "class": "=if([$NextCalibration] <= @now, 'sp-field-severity--blocked' , if([$NextCalibration] -2419200000 >= @now , 'sp-field-severity--good' , 'sp-field-severity--warning'))" } } My main questions is: How do I combine these to. I don't particularly understand the JSON code that SharePoint has generated so is there somewhere i can place my code to do what I need it to do? Thanks in advance850Views0likes0CommentsSPO list jumps to top when loading new items
I am seeing an issue with an SPO list, where the page jumps back to the top when attempting to scroll down. You can see a video of what occurs here: https://www.youtube.com/watch?v=_lx30TvRfqs&feature=youtu.be (note in this video, I have only scrolled down). I have replicated this issue across multiple browsers (chrome, IE and Edge) on several machines. The issue only seems to occur after the list reaches a certain length. I am using custom JSON view formatting, the code for which can be seen here. Though another user appears to have run into the same issue, and did not mention using view formatting. If I alter my formatting to be more dense (to show more items per line, thus reducing the height of the page), the issue does not occur. The issue also does not occur in folders with fewer items. As you can see from the video, the problem happens as the page reaches the bottom of the currently loaded items. Hence why reducing the number of items or fitting more onto the screen prevents the issue (as all the items are loaded with the page). However this is not a solution as we require more than the ~50 items we can currently show, before the bug appears. I have posted this to MS Answers, and an MS agent directed me here. He seemed to think the issue was related to my JSON code.1.8KViews0likes1CommentFormat a Choice Column so it presents the items on individual lines rather than wrapping them?
Hi, I've had a good troll of the internet but I can't find an answer to my question, this kind of makes me think it's not possible, but considering how customisable SPO is now I find that hard to believe. I have a choice column that is configured to allow users to select more than one item. When this column is displayed on the list the items are separated by a comma and they are all wrapped. What I'd like to do is put a line break between each item so they are easy to read at a glance, what would be really good would be to bullet them but I'd be happy with separate lines. :) Does anyone have any thoughts on how I could achieve this? Thanks in advance Rob1.1KViews0likes0CommentsManaging file templates for document libraries programatically
Are there methods available to programatically manage file template capabilities in document libraries? I've created a library and added the out of the box file templates (e.g. Word Document, Excel Workbook, etc.). This can be seen in the schema of an extracted PnP template under <NewDocumentTemplates>: Is there a way we can apply or configure this setting to a library during or post-creation programatically?1.2KViews0likes1Comment