Skip to content

Commit 57fa86c

Browse files
committed
Fixup markdown rendering issues per MSDOCS exceptions
- references SharePoint#5647
1 parent 86f784d commit 57fa86c

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

docs/declarative-customization/list-form-conditional-show-hide.md

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
---
22
title: Show or hide columns in a list form
3-
description: Customize which columns to show or hide using a conditional formula in the list form by constructing a simple formula that are equations performing conditional checks on values in a SharePoint list or library.
4-
ms.date: 03/16/2020
3+
description: Customize which columns to show or hide using a conditional formula in the list form by constructing a simple formula that are equations performing conditional checks on values in a SharePoint list or library.
4+
ms.date: 04/30/2020
55
localization_priority: Priority
66
---
77

88
# Show or hide columns in a list or library form
9+
910
You can show or hide columns in a list or library form as an alternative to deleting them. When you hide a column, it doesn't affect the column or the data in the column, as it would if you deleted it. To re-use the column, you can simply show it again in the form.
1011

1112
To show or hide a column in a list or library form:
1213

1314
1. Go to the list or library for which you want to show or hide columns in the form.
15+
1. If you are in a list:
1416

15-
2. If you are in a list:
16-
17-
- Open an item to view the item details in the display form.
17+
- Open an item to view the item details in the display form.
1818

19-
3. If you are in a document library:
19+
1. If you are in a document library:
2020

21-
- Select a file.
22-
- In the **Information Pane**:
23-
- Locate the **Properties** section.
24-
- Click **Edit all**.
21+
- Select a file.
22+
- In the **Information Pane**:
23+
- Locate the **Properties** section.
24+
- Click **Edit all**.
2525

26-
4. At the top of the form, select **Edit Form > Edit columns**.
26+
1. At the top of the form, select **Edit Form > Edit columns**.
27+
1. In the **Edit columns** pane, check (to show) or uncheck (to hide) the box for the column or columns as needed.
2728

28-
5. In the **Edit columns** pane, check (to show) or uncheck (to hide) the box for the column or columns as needed.
29+
> [!NOTE]
30+
> If you want to re-arrange the order of the columns, either drag-and-drop the column name, or select the up or down arrow next to the column name as preferred.
2931
30-
> [!NOTE] If you want to re-arrange the order of the columns, either drag-and-drop the column name, or select the up or down arrow next to the column name as preferred.
31-
32-
6. When you're finished, select **Save**.
32+
1. When you're finished, select **Save**.
3333

3434
## Specify conditional formula to show or hide columns
35+
3536
You can show or hide columns in a list form based on another column's value by specifying a formula that are equations performing conditional checks on values in a SharePoint list or library.
3637

3738
To specify a conditional formula for a column, in the **Edit columns** pane:
3839

3940
1. Navigate to the desired column for which you want to set a conditional formula and find the more options menu (...) next to that column
41+
1. In the more options, select **Edit conditional formula**.
42+
1. In the **Edit conditional formula** dialog:
43+
- To determine whether this column is shown or hidden, specify a conditional formula based on the value of another column.
44+
- To clear the condition, leave it blank.
4045

41-
2. In the more options, select **Edit conditional formula**.
42-
43-
3. In the **Edit conditional formula** dialog:
44-
- To determine whether this column is shown or hidden, specify a conditional formula based on the value of another column.
45-
- To clear the condition, leave it blank.
46-
47-
4. When you are finished, select **Save**.
46+
1. When you are finished, select **Save**.
4847

4948
### Get started with conditional formulas
50-
Formulas are equations that perform conditional expressions on column values in a list or library. A formula starts with an equal sign (=) followed by the _if_ function that returns either a _true_ or a _false_ result.
49+
50+
Formulas are equations that perform conditional expressions on column values in a list or library. A formula starts with an equal sign (=) followed by the _if_ function that returns either a _true_ or a _false_ result.
5151

5252
For example, the following formula checks if the value for the *Category* column is *Product Management*.
5353

@@ -60,21 +60,25 @@ Returning _true_ results in hiding the column in the form while returning _false
6060
The column is represented by specifying the **internal name** of the field surrounded by square brackets and preceeded by a dollar sign: [$InternalName]. For example, to get the value of a field with an internal name of "ProductName", use [$ProductName].
6161

6262
#### Supported column types in conditional show or hide
63+
6364
While the formula supports many of the available column types, we do not currently support the following column types:
65+
6466
* Currency columns
6567
* Location columns
6668
* Calculated columns
6769

6870
#### Quick formula reference
6971

7072
##### Choice column
73+
7174
The following formula checks if the choice column [$Category] has a value *Product Management*:
7275

7376
```
7477
=if([$Category]=='Product Management','true', 'false')
7578
```
7679

7780
##### Number column
81+
7882
The following formula checks if the choice column [$Flightscost] is less than or equal to *120*:
7983

8084
```
@@ -88,6 +92,7 @@ You can also do arithmetic calculations, such as adding the value of two columns
8892
```
8993

9094
##### Date column
95+
9196
The following formula checks if the date column [$StartDate] is equal to a specific date. To do so, it uses the *Date()* function to convert a given string into a date:
9297

9398
```
@@ -105,6 +110,3 @@ An example checking if the dates from [$StartDate] and [$EndDate] columns are be
105110
```
106111
=if([$StartDate] >= Date('4/6/2020') && [$EndDate] <= Date('6/10/2020'),'true','false')
107112
```
108-
109-
110-

0 commit comments

Comments
 (0)