Skip to content

Commit 607761c

Browse files
authored
Fixed typos and improved formatting (SharePoint#6594)
* Fixed typos and improved formatting * Added lookup column as unsupported column Added lookup column as unsupported column, as mentioned by Andrew Connell at: SharePoint#6249
1 parent 46cb392 commit 607761c

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

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

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ localization_priority: Priority
77

88
# Show or hide columns in a list or library form
99

10-
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.
10+
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 delete it. To re-use the column, you can simply show it again in the form.
1111

1212
To show or hide a column in a list or library form:
1313

@@ -23,11 +23,11 @@ To show or hide a column in a list or library form:
2323
- Locate the **Properties** section.
2424
- Click **Edit all**.
2525

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.
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 checkbox for the column or columns as needed.
2828

2929
> [!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.
30+
> If you want to re-arrange the order of the columns, either drag-and-drop the column name, or first select the far right hand edge of the column name to display the options menu **(...)** and then select Move Up or Move Down as preferred.
3131
3232
1. When you're finished, select **Save**.
3333

@@ -48,25 +48,26 @@ To specify a conditional formula for a column, in the **Edit columns** pane:
4848

4949
### Get started with conditional formulas
5050

51-
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.
51+
Formulas are equations that perform conditional checks 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.
5252

53-
For example, the following formula checks if the value for the *Category* column is *Product Management*.
53+
For example, the following formula checks if the value for the *Category* column is *Product Management*:
5454

5555
```
56-
=if([$Category]=='Product Management','true', 'false')
56+
=if([$Category] == 'Product Management', 'true', 'false')
5757
```
5858

59-
Returning _true_ results in hiding the column in the form while returning _false_ does not.
59+
Returning _true_ results in showing the column on the form while returning _false_ hides the column.
6060

61-
The column is represented 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 "ProductName", use [$ProductName].
61+
The column is represented 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 "ProductName", use `[$ProductName]`.
6262

63-
#### Supported column types in conditional show or hide
63+
#### Unsupported column types in conditional formulas
6464

6565
While the formula supports many of the available column types, we do not currently support the following column types:
6666

67-
* Person columns with multiple selections
68-
* Multiple choice column
69-
* Time calculations in DateTime column
67+
* Person or Group with multiple selections
68+
* Choice with multiple selections
69+
* Lookup columns
70+
* Time calculations in Date and Time column
7071
* Currency columns
7172
* Location columns
7273
* Calculated columns
@@ -76,59 +77,59 @@ While the formula supports many of the available column types, we do not current
7677

7778
##### Choice column
7879

79-
The following formula checks if the choice column [$Category] has a value *Product Management*:
80+
The following formula checks if the choice column `[$Category]` has a value *Product Management*:
8081

8182
```
82-
=if([$Category]=='Product Management','true', 'false')
83+
=if([$Category] == 'Product Management', 'true', 'false')
8384
```
8485

8586
##### Number column
8687

87-
The following formula checks if the choice column [$Flightscost] is less than or equal to *120*:
88+
The following formula checks if the number column `[$Flightscost]` is less than or equal to *120*:
8889

8990
```
90-
=if([$Flightscost]<=120, 'true','false')
91+
=if([$Flightscost] <= 120, 'true', 'false')
9192
```
9293

93-
You can also do arithmetic calculations, such as adding the value of two columns and checking its sum as follows in the following formula:
94+
You can also do arithmetic calculations, such as adding the value of two columns and checking its sum as given in the following formula:
9495

9596
```
96-
=if(([$Flightscost]+[$Hotelcost])>500, 'true','false')
97+
=if(([$Flightscost] + [$Hotelcost]) > 500, 'true', 'false')
9798
```
9899

99100
##### Date column
100101

101-
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:
102+
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:
102103

103104
```
104-
=if([$StartDate]==Date('4/6/2020'),'true','false')
105+
=if([$StartDate] == Date('4/6/2020'), 'true', 'false')
105106
```
106107

107-
An example checking if the date column [$StartDate] is less than a specific date:
108+
An example of checking if the date column `[$StartDate]` is less than or equal to a specific date:
108109

109110
```
110-
=if([$StartDate] >= Date('4/6/2020'),'true','false')
111+
=if([$StartDate] <= Date('4/6/2020'), 'true', 'false')
111112
```
112113

113-
An example checking if the dates from [$StartDate] and [$EndDate] columns are between specific dates:
114+
An example of checking if the dates from `[$StartDate]` and `[$EndDate]` columns are between specific dates:
114115

115116
```
116-
=if([$StartDate] >= Date('4/6/2020') && [$EndDate] <= Date('6/10/2020'),'true','false')
117+
=if([$StartDate] >= Date('4/6/2020') && [$EndDate] <= Date('6/10/2020'), 'true', 'false')
117118
```
118119

119120
##### Person column
120121

121-
The following formula checks if the person column [$Owner] is equal to a specific user's email.
122+
The following formula checks if an email of person column `[$Owner]` is equal to a specific user's email:
122123

123124
```
124-
=if([$Owner.email]=='[email protected]', 'true', 'false')
125+
=if([$Owner.email] == '[email protected]', 'true', 'false')
125126
```
126127

127128
##### Boolean (Yes/No) column
128129

129-
The following formula checks if the Yes/No column [$Promoted] is equal to a Yes. To do so, it checks for the value _true_ which maps to _Yes_ for users.
130+
The following formula checks if the Yes/No column `[$Promoted]` is equal to a Yes. To do so, it checks for the value _true_ which maps to _Yes_ for users.
130131

131132
```
132-
=if([$Promoted]==true,'true','false')
133+
=if([$Promoted] == true, 'true', 'false')
133134
```
134135

0 commit comments

Comments
 (0)