Skip to content

Commit 557ec0f

Browse files
Merge pull request SharePoint#8664 from Fedes365/main
Update - Fix of issues related to information missing in Microsoft Docs
2 parents 27c50e5 + c1782e4 commit 557ec0f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

docs/declarative-customization/formatting-syntax-reference.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Formatting syntax reference
33
description: Formatting syntax reference
4-
ms.date: 10/04/2022
4+
ms.date: 12/28/2022
55
ms.localizationpriority: high
66
---
77

@@ -1014,6 +1014,9 @@ The following example shows how a approval status field might be used on a curre
10141014

10151015
The column is formatted within the context of the entire row. You can use this context to reference the values of other fields within the same row by specifying the **internal name** of the field surrounded by square brackets and preceded by a dollar sign: `[$InternalName]`. For example, to get the value of a field with an internal name of "MarchSales", use `[$MarchSales]`.
10161016

1017+
> [!NOTE]
1018+
> Reference to other fields will work only if they are included in the same view.
1019+
10171020
If the value of a field is an object, the object's properties can be accessed. For example, to access the "Title" property of a person field named "SalesLead", use "[$SalesLead.title]".
10181021

10191022
### "[!FieldName]"

docs/declarative-customization/view-calendar-formatting.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Format calendar view to customize SharePoint
33
description: Customize calendar views in SharePoint lists and libraries
4-
ms.date: 07/01/2022
4+
ms.date: 12/23/2022
55
ms.localizationpriority: high
66
---
77

@@ -16,12 +16,21 @@ Groups the command bar customization options. For details on `commandBarProps`,
1616
## See also
1717
- [Command bar customization syntax reference](./view-commandbar-formatting.md)
1818

19+
### List setup before creating a calendar view and applying a JSON formatting
20+
21+
Before creating a new calendar view, a list should include all the required columns to be used in any JSON formatting.
22+
23+
After creating a calendar view, if more columns are required, go to the [List Settings page](https://support.microsoft.com/office/edit-list-settings-4d35793b-246e-42a3-990c-563a83795b7f) to create and add them to a calendar view.
24+
1925
### Conditional view formatting based on a specific column
2026

2127
The following image shows an example of conditional formatting applied to a calendar view, based on a single choice column named **PROJECT**:
2228

2329
![SharePoint list calendar formatting](../images/calendar-view-formatting.png)
2430

31+
> ![NOTE]
32+
> Before creating a new calendar view, make sure the PROJECT column is already existing to apply the JSON code illustrated below. Alternatively, go the [List Settings page](https://support.microsoft.com/office/edit-list-settings-4d35793b-246e-42a3-990c-563a83795b7f) to create and add the single choice PROJECT column to a calendar view.
33+
2534
In this example, **PROJECT** column has the following options:
2635
- Project A
2736
- Project B
@@ -42,3 +51,4 @@ The JSON code below makes use of SharePoint Online Modern UI classes to apply co
4251
The gif image below shows the final result:
4352

4453
![SharePoint list calendar formatting result](../images/calendar-view-formatting-result.gif)
54+

0 commit comments

Comments
 (0)