@@ -15,8 +15,6 @@ To configure a form, you will use JSON formatters that you are already familiar
15
15
16
16
To configure the form in a list or library:
17
17
18
- To show or hide a column in a list or library form:
19
-
20
18
1 . Go to the list or library for which you want to configure the form.
21
19
1 . If you are in a list:
22
20
@@ -46,13 +44,13 @@ To show or hide a column in a list or library form:
46
44
> [ !NOTE]
47
45
> Form configuration allows for certain [ predefined elements and attributes] ( column-formatting.md#creating-custom-json ) to build the custom header.
48
46
49
- 1 . Below is an example of a custom header JSON:
47
+ 1 . Below is an example of a custom header & JSON:
50
48
51
49
![ Custom list form header] ( images/list-form-configuration-header.png )
52
50
53
51
``` JSON
54
52
{
55
- "debugmode " : " true" ,
53
+ "debugMode " : true ,
56
54
"elmType" : " div" ,
57
55
"attributes" : {
58
56
"class" : " ms-borderColor-neutralTertiary"
@@ -79,7 +77,7 @@ To show or hide a column in a list or library form:
79
77
"elmType" : " div" ,
80
78
"attributes" : {
81
79
"iconName" : " Group" ,
82
- "class" : " ms-fontSize-42 ms-fontWeight-regular ms-fontColor-themePrimary" ,
80
+ "class" : " ms-fontSize-42 ms-fontWeight-regular ms-fontColor-themePrimary" ,
83
81
"title" : " Details"
84
82
},
85
83
"style" : {
@@ -106,17 +104,16 @@ To show or hide a column in a list or library form:
106
104
"children" : [
107
105
{
108
106
"elmType" : " div" ,
109
- "txtContent" : " ='Contact details for ' +[$Title]"
107
+ "txtContent" : " ='Contact details for ' + [$Title]"
110
108
}
111
109
]
112
110
}
113
111
]
114
112
}
115
113
```
116
-
117
- 1 . To preview your changes, click the **Preview** button.
118
- 1 . To save your changes, click the **Save** button.
119
- 1 . Close the form and open the form again to view the applied header.
114
+ 1 . To preview your changes, click the **Preview** button.
115
+ 1 . To save your changes, click the **Save** button.
116
+ 1 . Close and open the form again to view the custom header.
120
117
121
118
## Configure custom footer
122
119
@@ -126,43 +123,47 @@ To show or hide a column in a list or library form:
126
123
> [!NOTE]
127
124
> Form configuration allows for certain [predefined elements and attributes](column-formatting.md#creating-custom-json) to build the custom footer.
128
125
129
- 1 . Below is an example of a custom footer JSON:
126
+ 1 . Below is an example of a custom footer & JSON:
130
127
131
128

132
129
133
130
```JSON
134
131
{
135
- "debugMode" : true ,
136
- "elmType" : " div" ,
137
- "style" : {
138
- "width" : " 100%" ,
139
- "text-align" : " left" ,
140
- "overflow" : " hidden" ,
141
- "border-top-width" : " 1px"
142
- },
143
- "children" : [{
132
+ "debugMode" : true ,
144
133
"elmType" : " div" ,
145
134
"style" : {
146
- "width" : " 100%" ,
147
- "padding-top" : " 10px" ,
148
- "height" : " 24px"
135
+ "width" : " 100%" ,
136
+ "text-align" : " left" ,
137
+ "overflow" : " hidden" ,
138
+ "border-top-width" : " 1px"
149
139
},
150
- "children" : [{
151
- "elmType" : " a" ,
152
- "txtContent" :" ='Contact Details for '+[$Title]" ,
153
- "attributes" : {
154
- "target" : " _blank" ,
155
- "href" : " ='https://aka.ms/contacts?email='+[$Email]" ,
156
- "class" : " ms-fontColor-themePrimary ms-borderColor-themePrimary ms-fontWeight-semibold ms-fontSize-m ms-fontColor-neutralSecondary–hover ms-bgColor-themeLight–hover"
157
- }
158
- }]
159
- }]
140
+ "children" : [
141
+ {
142
+ "elmType" : " div" ,
143
+ "style" : {
144
+ "width" : " 100%" ,
145
+ "padding-top" : " 10px" ,
146
+ "height" : " 24px"
147
+ },
148
+ "children" : [
149
+ {
150
+ "elmType" : " a" ,
151
+ "txtContent" : " ='Contact Details for ' + [$Title]" ,
152
+ "attributes" : {
153
+ "target" : " _blank" ,
154
+ "href" : " ='https://aka.ms/contacts?email=' + [$Email]" ,
155
+ "class" : " ms-fontColor-themePrimary ms-borderColor-themePrimary ms-fontWeight-semibold ms-fontSize-m ms-fontColor-neutralSecondary–hover ms-bgColor-themeLight–hover"
156
+ }
157
+ }
158
+ ]
159
+ }
160
+ ]
160
161
}
161
162
```
162
163
163
164
1 . To preview your changes, click the **Preview** button.
164
165
1 . To save your changes, click the **Save** button.
165
- 1 . Close the form and open the form again to view the applied header .
166
+ 1 . Close and open the form again to view the custom footer .
166
167
167
168
## Configure custom body with one or more sections
168
169
@@ -181,50 +182,54 @@ To show or hide a column in a list or library form:
181
182
182
183
```JSON
183
184
{
184
- "sections" : [{
185
- //give a display name for the section
186
- "displayname" : " " ,
187
- "fields" : [
188
- //reference your fields here using their display name
189
- " Title"
190
- ]
191
- },
192
- {
193
- //give a display name for the section
194
- "displayname" : " " ,
195
- "fields" : [
196
- //reference your fields here using their display name
185
+ "sections" : [
186
+ {
187
+ //give a display name for the section
188
+ "displayName" : " " ,
189
+ "fields" : [
190
+ //reference your fields here using their display name
191
+ " Title"
192
+ ]
193
+ },
194
+ {
195
+ //give a display name for the section
196
+ "displayName" : " " ,
197
+ "fields" : [
198
+ //reference your fields here using their display name
199
+ ]
200
+ }
197
201
]
198
- }]
199
202
}
200
203
```
201
204
202
205
1 . Below is an example of a custom body JSON with sections:
203
206
204
207
```JSON
205
208
{
206
- "sections" : [{
207
- "displayname" : " " ,
208
- "fields" : [
209
- " Title"
210
- ]
211
- },
212
- {
213
- "displayname" : " Details" ,
214
- "fields" : [
215
- " Department" ,
216
- " Email" ,
217
- " Country"
218
- ]
219
- },
220
- {
221
- "displayname" : " Application" ,
222
- "fields" : [
223
- " Application Id" ,
224
- " Approver" ,
225
- " Reviewer"
226
- ]
227
- }]
209
+ "sections" : [
210
+ {
211
+ "displayName" : " " ,
212
+ "fields" : [
213
+ " Title"
214
+ ]
215
+ },
216
+ {
217
+ "displayName" : " Details" ,
218
+ "fields" : [
219
+ " Department" ,
220
+ " Email" ,
221
+ " Country"
222
+ ]
223
+ },
224
+ {
225
+ "displayName" : " Application" ,
226
+ "fields" : [
227
+ " Application Id" ,
228
+ " Approver" ,
229
+ " Reviewer"
230
+ ]
231
+ }
232
+ ]
228
233
}
229
234
```
230
235
@@ -237,4 +242,4 @@ To show or hide a column in a list or library form:
237
242
238
243
1 . To preview your changes, click the **Preview** button.
239
244
1 . To save your changes, click the **Save** button.
240
- 1 . Close the form and open the form again to view the applied header .
245
+ 1 . Close and open the form again to view the custom body .
0 commit comments