@abgov/adsp-sdk-mcp-server 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/README.md +51 -0
  2. package/assets/docs/architecture.md +79 -0
  3. package/assets/docs/getting-started.md +118 -0
  4. package/assets/docs/important-notes.md +47 -0
  5. package/assets/docs/index.md +9 -0
  6. package/assets/docs/platform/deployment.md +80 -0
  7. package/assets/docs/platform/getting-started.md +66 -0
  8. package/assets/docs/platform/operations.md +8 -0
  9. package/assets/docs/platform/platform-django-sdk.md +330 -0
  10. package/assets/docs/platform/platform-dotnet-sdk.md +457 -0
  11. package/assets/docs/platform/platform-flask-sdk.md +355 -0
  12. package/assets/docs/platform/platform-node-sdk.md +433 -0
  13. package/assets/docs/platform/platform-spring-sdk.md +344 -0
  14. package/assets/docs/platform/platform.md +8 -0
  15. package/assets/docs/services/access-service.md +75 -0
  16. package/assets/docs/services/agent-service.md +316 -0
  17. package/assets/docs/services/cache-service.md +61 -0
  18. package/assets/docs/services/calendar-service.md +86 -0
  19. package/assets/docs/services/comment-service.md +87 -0
  20. package/assets/docs/services/configuration-service.md +92 -0
  21. package/assets/docs/services/directory-service.md +57 -0
  22. package/assets/docs/services/event-service.md +122 -0
  23. package/assets/docs/services/feedback-service.md +152 -0
  24. package/assets/docs/services/file-service.md +164 -0
  25. package/assets/docs/services/form-service.md +149 -0
  26. package/assets/docs/services/notification-service.md +151 -0
  27. package/assets/docs/services/pdf-service.md +116 -0
  28. package/assets/docs/services/pii-service.md +45 -0
  29. package/assets/docs/services/push-service.md +106 -0
  30. package/assets/docs/services/services.md +6 -0
  31. package/assets/docs/services/status-service.md +29 -0
  32. package/assets/docs/services/task-service.md +139 -0
  33. package/assets/docs/services/tenant-service.md +18 -0
  34. package/assets/docs/services/token-handler.md +135 -0
  35. package/assets/docs/services/value-service.md +80 -0
  36. package/assets/docs/services/verify-service.md +61 -0
  37. package/assets/docs/tutorials/access-service/access-service.md +9 -0
  38. package/assets/docs/tutorials/access-service/adsp-clients.md +29 -0
  39. package/assets/docs/tutorials/access-service/application-clients.md +61 -0
  40. package/assets/docs/tutorials/access-service/front-end-access.md +53 -0
  41. package/assets/docs/tutorials/access-service/introduction.md +33 -0
  42. package/assets/docs/tutorials/access-service/tenants.md +68 -0
  43. package/assets/docs/tutorials/access-service/themes.md +43 -0
  44. package/assets/docs/tutorials/feedback-service/accessing-data.md +41 -0
  45. package/assets/docs/tutorials/feedback-service/feedback-service.md +9 -0
  46. package/assets/docs/tutorials/feedback-service/installation.md +142 -0
  47. package/assets/docs/tutorials/feedback-service/introduction.md +28 -0
  48. package/assets/docs/tutorials/feedback-service/security.md +40 -0
  49. package/assets/docs/tutorials/feedback-service/triggering.md +21 -0
  50. package/assets/docs/tutorials/file-service/file-service.md +9 -0
  51. package/assets/docs/tutorials/file-service/file-types.md +35 -0
  52. package/assets/docs/tutorials/file-service/introduction.md +34 -0
  53. package/assets/docs/tutorials/file-service/security.md +31 -0
  54. package/assets/docs/tutorials/file-service/working-with.md +65 -0
  55. package/assets/docs/tutorials/form-service/Integration.md +31 -0
  56. package/assets/docs/tutorials/form-service/ai-agent.md +450 -0
  57. package/assets/docs/tutorials/form-service/building-forms.md +264 -0
  58. package/assets/docs/tutorials/form-service/cheat-sheet.md +1461 -0
  59. package/assets/docs/tutorials/form-service/custom-error-messages.md +87 -0
  60. package/assets/docs/tutorials/form-service/data-registers.md +204 -0
  61. package/assets/docs/tutorials/form-service/file-uploader.md +81 -0
  62. package/assets/docs/tutorials/form-service/form-app.md +72 -0
  63. package/assets/docs/tutorials/form-service/form-editor.md +62 -0
  64. package/assets/docs/tutorials/form-service/form-service.md +9 -0
  65. package/assets/docs/tutorials/form-service/form-submissions.md +77 -0
  66. package/assets/docs/tutorials/form-service/instructions.md +173 -0
  67. package/assets/docs/tutorials/form-service/introduction.md +66 -0
  68. package/assets/docs/tutorials/form-service/repeated-items.md +87 -0
  69. package/assets/docs/tutorials/form-service/security.md +36 -0
  70. package/assets/docs/tutorials/form-service/steppers.md +237 -0
  71. package/assets/docs/tutorials/notification-service/emailAttachment.md +75 -0
  72. package/assets/docs/tutorials/notification-service/events.md +20 -0
  73. package/assets/docs/tutorials/notification-service/introduction.md +37 -0
  74. package/assets/docs/tutorials/notification-service/notification-service.md +9 -0
  75. package/assets/docs/tutorials/notification-service/notification-types.md +86 -0
  76. package/assets/docs/tutorials/notification-service/subscribers.md +33 -0
  77. package/assets/docs/tutorials/pdf-service/building-a-template.md +339 -0
  78. package/assets/docs/tutorials/pdf-service/generate-a-pdf.md +150 -0
  79. package/assets/docs/tutorials/pdf-service/handlebars.md +51 -0
  80. package/assets/docs/tutorials/pdf-service/introduction.md +26 -0
  81. package/assets/docs/tutorials/pdf-service/pdf-service.md +9 -0
  82. package/assets/docs/tutorials/pdf-service/puppeteer.md +25 -0
  83. package/assets/docs/tutorials/pdf-service/video.md +18 -0
  84. package/assets/docs/tutorials/status-service/Introduction.md +46 -0
  85. package/assets/docs/tutorials/status-service/health.md +51 -0
  86. package/assets/docs/tutorials/status-service/notices.md +34 -0
  87. package/assets/docs/tutorials/status-service/notifications.md +107 -0
  88. package/assets/docs/tutorials/status-service/status-service.md +9 -0
  89. package/assets/docs/tutorials/status-service/status.md +35 -0
  90. package/assets/docs/tutorials/status-service/webhooks.md +24 -0
  91. package/assets/docs/tutorials/task-service/introduction.md +23 -0
  92. package/assets/docs/tutorials/task-service/task-app.md +43 -0
  93. package/assets/docs/tutorials/task-service/task-definitions.md +49 -0
  94. package/assets/docs/tutorials/task-service/task-queues.md +67 -0
  95. package/assets/docs/tutorials/task-service/task-service.md +9 -0
  96. package/assets/docs/tutorials/tutorials.md +8 -0
  97. package/package.json +18 -0
  98. package/src/docs/docsRepository.d.ts +22 -0
  99. package/src/docs/docsRepository.js +110 -0
  100. package/src/docs/docsRepository.js.map +1 -0
  101. package/src/main.d.ts +2 -0
  102. package/src/main.js +16 -0
  103. package/src/main.js.map +1 -0
  104. package/src/sdk-reference/reference.d.ts +17 -0
  105. package/src/sdk-reference/reference.js +547 -0
  106. package/src/sdk-reference/reference.js.map +1 -0
  107. package/src/sdk-reference/search.d.ts +6 -0
  108. package/src/sdk-reference/search.js +41 -0
  109. package/src/sdk-reference/search.js.map +1 -0
  110. package/src/server.d.ts +6 -0
  111. package/src/server.js +30 -0
  112. package/src/server.js.map +1 -0
  113. package/src/tools/registerDocsTools.d.ts +3 -0
  114. package/src/tools/registerDocsTools.js +66 -0
  115. package/src/tools/registerDocsTools.js.map +1 -0
  116. package/src/tools/registerQuickstartTool.d.ts +2 -0
  117. package/src/tools/registerQuickstartTool.js +82 -0
  118. package/src/tools/registerQuickstartTool.js.map +1 -0
  119. package/src/tools/registerSdkTools.d.ts +2 -0
  120. package/src/tools/registerSdkTools.js +43 -0
  121. package/src/tools/registerSdkTools.js.map +1 -0
  122. package/src/tools/types.d.ts +12 -0
  123. package/src/tools/types.js +3 -0
  124. package/src/tools/types.js.map +1 -0
@@ -0,0 +1,1461 @@
1
+ ---
2
+ title: Cheat Sheet
3
+ layout: page
4
+ nav_order: 13
5
+ parent: Form Service
6
+ grand_parent: Tutorials
7
+ ---
8
+
9
+ ## Cheat Sheet
10
+
11
+ Use the cheat sheet to determine how you could configure the _data and UI schemas_ to render specific form elements.
12
+
13
+ Note: in some UI schemas you will see "ComponentProps" in the options element. Component props are passed directly to the underlying _Design Systems components_ to alter their behaviour, See [their documentation](https://design.alberta.ca/components) for a complete list of properties that can be managed this way.
14
+
15
+ ### TOC
16
+
17
+ - [Common Data Formats](#target-common-formats)
18
+ - [Selectors](#target-selectors)
19
+ - [Form Layout](#target-layout)
20
+ - [Instructional Content](#target-instructions)
21
+ - [File Uploads](#target-uploads)
22
+ - [Repeating Items](#target-lists)
23
+ - [Steppers](#target-steppers)
24
+ - [Validation](#target-validation)
25
+
26
+ ### Common data formats {#target-common-formats}
27
+
28
+ Here are some out-of-the-box formats that not only render with the correct input widget, but ensure that the data provided by users is valid. NOTE: There is a known issue in jsonforms that allows an empty string to satisfy the required validation rule. To work around this, you should also add a minimum length of 1 to required string fields (see Limited text with required validation) below.
29
+
30
+ <table>
31
+ <tr>
32
+ <th>Format</th>
33
+ <th>Description</th>
34
+ <th>JSON schema</th>
35
+ <th>UI schema</th>
36
+ </tr>
37
+ <tr>
38
+ <td>Date</td>
39
+ <td>A calendar date picker for selecting a date value in ISO format (YYYY-MM-DD).</td>
40
+ <td><pre><code>
41
+ {
42
+ "dateOfBirth": {
43
+ "type": "string",
44
+ "format": "date"
45
+ }
46
+ }
47
+ </code></pre></td>
48
+ <td><pre><code>
49
+ {
50
+ "type": "Control",
51
+ "scope": "#/properties/dateOfBirth",
52
+ }
53
+ </code></pre></td>
54
+ </tr>
55
+ <tr>
56
+ <td>Date (past dates only)</td>
57
+ <td>A date picker restricted to only allow selection of dates in the past (before today).</td>
58
+ <td><pre><code>
59
+ {
60
+ "dateOfBirth": {
61
+ "type": "string",
62
+ "format": "date"
63
+ }
64
+ }
65
+ </code></pre></td>
66
+ <td><pre><code>
67
+ {
68
+ "type": "Control",
69
+ "scope": "#/properties/dateOfBirth",
70
+ "options": {
71
+ "allowPastDate": true,
72
+ "allowFutureDate": false
73
+ }
74
+ }
75
+ </code></pre></td>
76
+ </tr>
77
+ <tr>
78
+ <td>Date (future dates only)</td>
79
+ <td>A date picker restricted to only allow selection of dates in the future (after today).</td>
80
+ <td><pre><code>
81
+ {
82
+ "dateOfBirth": {
83
+ "type": "string",
84
+ "format": "date"
85
+ }
86
+ }
87
+ </code></pre></td>
88
+ <td><pre><code>
89
+ {
90
+ "type": "Control",
91
+ "scope": "#/properties/dateOfBirth",
92
+ "options": {
93
+ "allowPastDate": false,
94
+ "allowFutureDate": true
95
+ }
96
+ }
97
+ </code></pre></td>
98
+ </tr>
99
+ <tr>
100
+ <td>Integer</td>
101
+ <td>A numeric input field for whole numbers with optional min, max, and step constraints.</td>
102
+ <td><pre><code>
103
+ {
104
+ "numberOfChildren": {
105
+ "type": "integer"
106
+ }
107
+ }
108
+ </code></pre></td>
109
+ <td><pre><code>
110
+ {
111
+ "type": "Control",
112
+ "scope": "#/properties/numberOfChildren",
113
+ "options": {
114
+ "componentProps": {
115
+ "min": 10,
116
+ "max": 200,
117
+ "step": 5
118
+ }
119
+ }
120
+ }
121
+ </code></pre></td>
122
+ </tr>
123
+ <tr>
124
+ <td>Number</td>
125
+ <td>A numeric input field for decimal and floating-point values.</td>
126
+ <td><pre><code>
127
+ {
128
+ "averageYearlyRainfall": {
129
+ "type": "number"
130
+ }
131
+ }
132
+ </code></pre></td>
133
+ <td><pre><code>
134
+ {
135
+ "type": "Control",
136
+ "scope": "#/properties/averageYearlyRainfall"
137
+ }
138
+ </code></pre></td>
139
+ </tr>
140
+ <tr>
141
+ <td>Calculation (computed)</td>
142
+ <td>A read-only calculated field that evaluates a numeric expression from other form values and writes the result back into form data.</td>
143
+ <td><pre><code>
144
+ {
145
+ "total": {
146
+ "type": "string",
147
+ "format": "computed",
148
+ "description": "#/properties/x * #/properties/y + #/properties/z"
149
+ }
150
+ }
151
+ </code></pre></td>
152
+ <td><pre><code>
153
+ {
154
+ "type": "Control",
155
+ "scope": "#/properties/total",
156
+ "label": "Total"
157
+ }
158
+ </code></pre></td>
159
+ </tr>
160
+ <tr>
161
+ <td>Limited Text</td>
162
+ <td>A single-line text input field with character limit.</td>
163
+ <td><pre><code>
164
+ {
165
+ "firstName": {
166
+ "type": "string"
167
+ }
168
+ }
169
+ </code></pre></td>
170
+ <td><pre><code>
171
+ {
172
+ "type": "Control",
173
+ "scope": "#/properties/firstName"
174
+ }
175
+ </code></pre></td>
176
+ </tr>
177
+ <tr>
178
+ <td>Text populated from the logged-in user</td>
179
+ <td>
180
+ An empty text field populated from the logged-in user's profile. Set
181
+ <code>autoPopulate</code> to <code>firstName</code>, <code>lastName</code>, or
182
+ <code>email</code>. Fields without this UI-schema option are not populated.
183
+ </td>
184
+ <td><pre><code>
185
+ {
186
+ "applicantGivenName": {
187
+ "type": "string"
188
+ }
189
+ }
190
+ </code></pre></td>
191
+ <td><pre><code>
192
+ {
193
+ "type": "Control",
194
+ "scope": "#/properties/applicantGivenName",
195
+ "options": {
196
+ "autoPopulate": "firstName"
197
+ }
198
+ }
199
+ </code></pre></td>
200
+ </tr>
201
+ <tr>
202
+ <td>
203
+ Limited text
204
+ with required validation
205
+ </td>
206
+ <td>A required single-line text input that cannot be empty and must contain at least one character.</td>
207
+ <td>
208
+ <pre><code>
209
+ {
210
+ "firstName": {
211
+ "type": "string",
212
+ "minLength" : 1
213
+ },
214
+ "required" : [
215
+ "firstName"
216
+ ]
217
+ }
218
+ </code></pre>
219
+ </td>
220
+ <td><pre><code>
221
+ {
222
+ "type": "Control",
223
+ "scope": "#/properties/firstName"
224
+ }
225
+ </code></pre></td>
226
+
227
+ </tr>
228
+ <tr>
229
+ <td>Text Box</td>
230
+ <td>A multi-line text input field for longer text content with configurable row height.</td>
231
+ <td><pre><code>
232
+ {
233
+ "reasonForApplying": {
234
+ "type": "string"
235
+ }
236
+ }
237
+ </code></pre></td>
238
+ <td><pre><code>
239
+ {
240
+ "type": "Control",
241
+ "scope": "#/properties/reasonForApplying"
242
+ "options": {
243
+ "multi": true,
244
+ "componentProps": {
245
+ "rows": 10,
246
+ "placeholder": "multi line input"
247
+ }
248
+ }
249
+ }
250
+ </code></pre></td>
251
+ </tr>
252
+ <tr>
253
+ <td>Text Box with required validation</td>
254
+ <td>A required multi-line text field that must contain at least one character.</td>
255
+ <td><pre><code>
256
+ {
257
+ "reasonForApplying": {
258
+ "type": "string",
259
+ "minLength" : 1
260
+ },
261
+ "required" : [
262
+ "reasonForApplying"
263
+ ]
264
+ }
265
+ </code></pre></td>
266
+ <td><pre><code>
267
+ {
268
+ "type": "Control",
269
+ "scope": "#/properties/reasonForApplying"
270
+ "options": {
271
+ "multi": true,
272
+ "componentProps": {
273
+ "rows": 10,
274
+ "placeholder": "multi line input"
275
+ }
276
+ }
277
+ }
278
+ </code></pre></td>
279
+ </tr>
280
+ <tr>
281
+ <td>Boolean (yes,no)</td>
282
+ <td>A radio button group for selecting between two options (typically Yes/No).</td>
283
+ <td><pre><code>
284
+ {
285
+ "isOver18": {
286
+ "type": "boolean"
287
+ }
288
+ }
289
+ </code></pre></td>
290
+ <td><pre><code>
291
+ {
292
+ "type": "Control",
293
+ "scope": "#/properties/isOver18"
294
+ "label": "Are you over 18 years of age?",
295
+ "options": {
296
+ "format": "radio",
297
+ "textForTrue": "Yes",
298
+ "textForFalse": "No"
299
+ }
300
+ }
301
+ </code></pre></td>
302
+ </tr>
303
+ <tr>
304
+ <td>Checkbox with required validation</td>
305
+ <td>A required checkbox that must be checked (confirmed) to satisfy the form requirement.</td>
306
+ <td><pre><code>
307
+ {
308
+ "iDeclare": {
309
+ "type": "boolean",
310
+ "allOf": [
311
+ {
312
+ "enum": [
313
+ true
314
+ ]
315
+ }
316
+ ]
317
+ },
318
+ "required" : [
319
+ "ideclare"
320
+ ]
321
+ }
322
+ </code></pre></td>
323
+ <td><pre>
324
+ <code>
325
+ {
326
+ "type": "Control",
327
+ "scope": "#/properties/iDeclare"
328
+ "options":{
329
+ text: "I declare the information is correct to the best of my knowledge"
330
+ }
331
+ }
332
+ </code></pre></td>
333
+
334
+ </tr>
335
+
336
+ </table>
337
+
338
+ #### Date Input Control Options
339
+
340
+ The date control supports these options to restrict date selection:
341
+
342
+ <table>
343
+ <tr>
344
+ <th>Option</th>
345
+ <th>Behavior</th>
346
+ <th>Default</th>
347
+ </tr>
348
+ <tr>
349
+ <td><code>allowPastDate</code></td>
350
+ <td>When set to <code>true</code> with <code>allowFutureDate: false</code>, restricts the date picker to only allow selection of past dates (before today).</td>
351
+ <td>Not set</td>
352
+ </tr>
353
+ <tr>
354
+ <td><code>allowFutureDate</code></td>
355
+ <td>When set to <code>true</code> with <code>allowPastDate: false</code>, restricts the date picker to only allow selection of future dates (after today).</td>
356
+ <td>Not set</td>
357
+ </tr>
358
+ </table>
359
+
360
+ #### Calculation Control
361
+
362
+ The calculation control is rendered when the JSON schema field uses <code>"format": "computed"</code>. The expression is defined in <code>schema.description</code>, evaluated against current form data, and the result is written back to the control path automatically. The rendered field is read-only.
363
+
364
+ ##### Calculation Requirements
365
+
366
+ <table>
367
+ <tr>
368
+ <th>Property</th>
369
+ <th>Location</th>
370
+ <th>Behavior</th>
371
+ </tr>
372
+ <tr>
373
+ <td><code>format</code></td>
374
+ <td><code>JSON schema</code></td>
375
+ <td>Must be set to <code>computed</code> for the calculation renderer to be selected.</td>
376
+ </tr>
377
+ <tr>
378
+ <td><code>description</code></td>
379
+ <td><code>JSON schema</code></td>
380
+ <td>Contains the calculation expression. This is where the library reads the formula from.</td>
381
+ </tr>
382
+ <tr>
383
+ <td><code>scope</code></td>
384
+ <td><code>UI schema</code></td>
385
+ <td>Points to the destination field where the computed result is stored.</td>
386
+ </tr>
387
+ <tr>
388
+ <td><code>label</code></td>
389
+ <td><code>UI schema</code></td>
390
+ <td>Optional display label for the read-only calculated field.</td>
391
+ </tr>
392
+ </table>
393
+
394
+ ##### Supported Calculation Patterns
395
+
396
+ <table>
397
+ <tr>
398
+ <th>Pattern</th>
399
+ <th>Description</th>
400
+ <th>Example Expression</th>
401
+ </tr>
402
+ <tr>
403
+ <td>Arithmetic with scopes</td>
404
+ <td>Uses referenced form values in numeric expressions.</td>
405
+ <td><code>#/properties/x * #/properties/y + #/properties/z</code></td>
406
+ </tr>
407
+ <tr>
408
+ <td><code>SUM(...)</code></td>
409
+ <td>Sums a numeric property across all rows of an object array.</td>
410
+ <td><code>SUM(#/properties/items/amount)</code></td>
411
+ </tr>
412
+ <tr>
413
+ <td><code>min(...)</code></td>
414
+ <td>Returns the smallest numeric value from referenced scopes and/or literals.</td>
415
+ <td><code>min(#/properties/a, #/properties/b, 100)</code></td>
416
+ </tr>
417
+ <tr>
418
+ <td><code>max(...)</code></td>
419
+ <td>Returns the largest numeric value from referenced scopes and/or literals.</td>
420
+ <td><code>max(#/properties/a, #/properties/b, 0)</code></td>
421
+ </tr>
422
+ </table>
423
+
424
+ ##### Calculation Examples
425
+
426
+ **Basic arithmetic**
427
+
428
+ ```json
429
+ {
430
+ "type": "object",
431
+ "properties": {
432
+ "x": {
433
+ "type": "number"
434
+ },
435
+ "y": {
436
+ "type": "number"
437
+ },
438
+ "z": {
439
+ "type": "number"
440
+ },
441
+ "total": {
442
+ "type": "string",
443
+ "format": "computed",
444
+ "description": "#/properties/x * #/properties/y + #/properties/z"
445
+ }
446
+ }
447
+ }
448
+ ```
449
+
450
+ ```json
451
+ {
452
+ "type": "VerticalLayout",
453
+ "elements": [
454
+ {
455
+ "type": "Control",
456
+ "scope": "#/properties/x"
457
+ },
458
+ {
459
+ "type": "Control",
460
+ "scope": "#/properties/y"
461
+ },
462
+ {
463
+ "type": "Control",
464
+ "scope": "#/properties/z"
465
+ },
466
+ {
467
+ "type": "Control",
468
+ "scope": "#/properties/total",
469
+ "label": "Total"
470
+ }
471
+ ]
472
+ }
473
+ ```
474
+
475
+ **Sum a numeric column from a repeating-item array**
476
+
477
+ ```json
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "items": {
482
+ "type": "array",
483
+ "items": {
484
+ "type": "object",
485
+ "properties": {
486
+ "amount": {
487
+ "type": "number"
488
+ }
489
+ }
490
+ }
491
+ },
492
+ "totalAmount": {
493
+ "type": "string",
494
+ "format": "computed",
495
+ "description": "SUM(#/properties/items/amount)"
496
+ }
497
+ }
498
+ }
499
+ ```
500
+
501
+ ```json
502
+ {
503
+ "type": "VerticalLayout",
504
+ "elements": [
505
+ {
506
+ "type": "ListWithDetail",
507
+ "scope": "#/properties/items",
508
+ "options": {
509
+ "detail": {
510
+ "type": "VerticalLayout",
511
+ "elements": [
512
+ {
513
+ "type": "Control",
514
+ "scope": "#/properties/amount",
515
+ "label": "Amount"
516
+ }
517
+ ]
518
+ }
519
+ }
520
+ },
521
+ {
522
+ "type": "Control",
523
+ "scope": "#/properties/totalAmount",
524
+ "label": "Total amount"
525
+ }
526
+ ]
527
+ }
528
+ ```
529
+
530
+ **Clamp to a minimum or maximum value**
531
+
532
+ ```json
533
+ {
534
+ "type": "object",
535
+ "properties": {
536
+ "requested": {
537
+ "type": "number"
538
+ },
539
+ "approved": {
540
+ "type": "string",
541
+ "format": "computed",
542
+ "description": "min(#/properties/requested, 1000)"
543
+ }
544
+ }
545
+ }
546
+ ```
547
+
548
+ ##### Calculation Behavior and Errors
549
+
550
+ <table>
551
+ <tr>
552
+ <th>Case</th>
553
+ <th>Behavior</th>
554
+ </tr>
555
+ <tr>
556
+ <td>All referenced values missing</td>
557
+ <td>The field stays blank and no error is shown.</td>
558
+ </tr>
559
+ <tr>
560
+ <td>Some referenced values missing</td>
561
+ <td>The field stays blank and shows <code>Please provide values for: ...</code> after the user has interacted with the form.</td>
562
+ </tr>
563
+ <tr>
564
+ <td>Invalid scope in the expression</td>
565
+ <td>A configuration error is shown for the bad scope reference.</td>
566
+ </tr>
567
+ <tr>
568
+ <td>Invalid expression syntax</td>
569
+ <td>A configuration error is shown with <code>Invalid expression syntax</code>.</td>
570
+ </tr>
571
+ <tr>
572
+ <td>Non-numeric values in <code>SUM(...)</code></td>
573
+ <td>The calculation does not produce a value and asks for valid values for the referenced array column.</td>
574
+ </tr>
575
+ </table>
576
+
577
+ ##### Notes
578
+
579
+ - The library selects this control for schema fields with <code>type: "string"</code> and <code>format: "computed"</code>.
580
+ - Even though the schema type is <code>string</code>, the rendered control is a disabled numeric input and the computed value written back to form data is numeric.
581
+ - Scope references should use JSON pointer-style paths such as <code>#/properties/fieldName</code>.
582
+
583
+ ### Selectors {#target-selectors}
584
+
585
+ For when the user must select from a limited set of answers.
586
+
587
+ <table>
588
+ <tr>
589
+ <th>Feature</th>
590
+ <th>Description</th>
591
+ <th>JSON schema</th>
592
+ <th>UI schema</th>
593
+ </tr>
594
+ <tr>
595
+ <td>Dropdown menu</td>
596
+ <td>A collapsed dropdown selector for choosing one option from a predefined list.</td>
597
+ <td><pre><code>
598
+ {
599
+ "colour": {
600
+ "type": "string",
601
+ "enum": ["red", "blue", "green"]
602
+ }
603
+ }
604
+ </code></pre></td>
605
+ <td><pre><code>
606
+ {
607
+ "type": "Control",
608
+ "scope": "#/properties/colour"
609
+ "label": "What's your favorite colour?",
610
+ }
611
+ </code></pre></td>
612
+ </tr>
613
+ <tr>
614
+ <td>Radio Button</td>
615
+ <td>A set of radio buttons for selecting one option from a list, with options displayed inline or vertically.</td>
616
+ <td><pre><code>
617
+ {
618
+ "colour": {
619
+ "type": "string",
620
+ "enum": ["red", "blue", "green"]
621
+ }
622
+ }
623
+ </code></pre></td>
624
+ <td><pre><code>
625
+ {
626
+ "type": "Control",
627
+ "scope": "#/properties/colour",
628
+ "label": "What's your favorite colour?",
629
+ "options": {
630
+ "format": "radio",
631
+ "componentProps": {
632
+ "orientation": "horizontal"
633
+ }
634
+ }
635
+ }
636
+ </code></pre></td>
637
+ </tr>
638
+ <tr>
639
+ <td>Checkbox</td>
640
+ <td>A set of checkboxes for selecting multiple options from a list simultaneously.</td>
641
+ <td><pre><code>
642
+ {
643
+ "colour": {
644
+ "type": "string",
645
+ "enum": ["red", "blue", "green"]
646
+ }
647
+ }
648
+ </code></pre></td>
649
+ <td><pre><code>
650
+ {
651
+ "type": "Control",
652
+ "scope": "#/properties/colour",
653
+ "label": "What are your favorite colours?",
654
+ "options": {
655
+ "format": checkbox,
656
+ "componentProps": {
657
+ "orientation": "vertical"
658
+ }
659
+ }
660
+ }
661
+ </code></pre></td>
662
+ </tr>
663
+ </table>
664
+
665
+ ### Form Layout {#target-layout}
666
+
667
+ Layouts let you organize input fields they way you want them. You can lay out the fields in rows (horizontally), in columns (vertically), or in a mixture of both.
668
+
669
+ <table>
670
+ <tr>
671
+ <th>Feature</th>
672
+ <th>Description</th>
673
+ <th>JSON schema</th>
674
+ <th>UI schema</th>
675
+ </tr>
676
+ <tr>
677
+ <td>Vertical Layout (columns)</td>
678
+ <td>Arranges input fields vertically (stacked on top of each other) in a single column.</td>
679
+ <td><pre><code>
680
+ {
681
+ "type": "object",
682
+ "properties": {
683
+ "firstName": {
684
+ "type": "string"
685
+ },
686
+ "lastName": {
687
+ "type": "string"
688
+ }
689
+ }
690
+ }
691
+ </code></pre></td>
692
+ <td><pre><code>
693
+ {
694
+ "type": "VerticalLayout",
695
+ "elements": [
696
+ {
697
+ "type": "Control",
698
+ "scope": "#/properties/firstName"
699
+ },
700
+ {
701
+ "type": "Control",
702
+ "scope": "#/properties/lastName"
703
+ }
704
+ ]
705
+ }
706
+ </code></pre></td>
707
+ </tr>
708
+ <tr>
709
+ <td>Horizontal Layout (rows)</td>
710
+ <td>Arranges input fields horizontally (side by side) in a single row.</td>
711
+ <td><pre><code>
712
+ {
713
+ "type": "object",
714
+ "properties": {
715
+ "firstName": {
716
+ "type": "string"
717
+ },
718
+ "lastName": {
719
+ "type": "string"
720
+ }
721
+ }
722
+ }
723
+ </code></pre></td>
724
+ <td><pre><code>
725
+ {
726
+ "type": "HorizontalLayout",
727
+ "elements": [
728
+ {
729
+ "type": "Control",
730
+ "scope": "#/properties/firstName"
731
+ },
732
+ {
733
+ "type": "Control",
734
+ "scope": "#/properties/lastName"
735
+ }
736
+ ]
737
+ }
738
+ </code></pre></td>
739
+ </tr>
740
+ <tr>
741
+ <td>Mixed</td>
742
+ <td>Combines vertical and horizontal layouts to create complex field arrangements with multiple rows and columns.</td>
743
+ <td><pre><code>
744
+ {
745
+ "type": "object",
746
+ "properties": {
747
+ "firstName": {
748
+ "type": "string"
749
+ },
750
+ "lastName": {
751
+ "type": "string"
752
+ },
753
+ "reasonForLeaving": {
754
+ "type": "string"
755
+ }
756
+ }
757
+ }
758
+ </code></pre></td>
759
+ <td><pre><code>
760
+ {
761
+ "type": "VerticalLayout",
762
+ "elements": [
763
+ {
764
+ "type": "HorizontalLayout",
765
+ "elements": [
766
+ {
767
+ "type": "Control",
768
+ "scope": "#/properties/firstName"
769
+ },
770
+ {
771
+ "type": "Control",
772
+ "scope": "#/properties/lastName"
773
+ }
774
+ ]
775
+ },
776
+ {
777
+ "type": "Control",
778
+ "scope": "#/properties/reasonForLeaving",
779
+ "options": {
780
+ "multi": true
781
+ }
782
+ },
783
+ ]
784
+ }
785
+ </code></pre></td>
786
+ </tr>
787
+ <tr>
788
+ <td>Groups</td>
789
+ <td>Groups related input fields together with a label, visually organizing related information.</td>
790
+ <td><pre><code>
791
+ {
792
+ "type": "object",
793
+ "properties": {
794
+ "firstName": {
795
+ "type": "string"
796
+ },
797
+ "lastName": {
798
+ "type": "string"
799
+ },
800
+ "initial": {
801
+ "type": "string",
802
+ "maxLength": 1
803
+ }
804
+ }
805
+ }
806
+ </code></pre></td>
807
+ <td><pre><code>
808
+ {
809
+ "type": "Group",
810
+ "label": "Group Name",
811
+ "elements": [
812
+ {
813
+ "type": "Control",
814
+ "scope": "#/properties/firstName"
815
+ },
816
+ {
817
+ "type": "Control",
818
+ "scope": "#/properties/lastName"
819
+ },
820
+ {
821
+ "type": "Control",
822
+ "scope": "#/properties/initial"
823
+ },
824
+ ]
825
+ }
826
+ </code></pre></td>
827
+ </tr>
828
+ </table>
829
+
830
+ ### Instructional Content {#target-instructions}
831
+
832
+ For when you need to add instructions, or help, to guide users when they are filling out a form. Instructions can be rendered in text, as hyperlinks, or with images. See the [section on help text](/adsp-monorepo/tutorials/form-service/instructions.html) for more information.
833
+
834
+ Note: the optional labels are used as paragraph headings, when so desired. Nesting paragraphs (see below) can be used to generate subparagraphs, with appropriately sized subheadings. You can nest up to 3 levels.
835
+
836
+ As of **Jan. 2025** you can use markdown for help content, significantly simplifying the process of adding help text. Please see the [section on help text](/adsp-monorepo/tutorials/form-service/instructions.html).
837
+
838
+ <table>
839
+ <tr>
840
+ <th>Feature</th>
841
+ <th>Description</th>
842
+ <th>JSON schema</th>
843
+ <th>UI schema</th>
844
+ </tr>
845
+ <tr>
846
+ <td>Markdown</td>
847
+ <td>Renders instructional content using Markdown syntax, supporting bold, italic, links, bullet points, and section headings.</td>
848
+ <td>N/A</td>
849
+ <td><pre><code>
850
+ {
851
+ "type": "HelpContent",
852
+ "label": "Paragraph Heading (bold, H2)",
853
+ "options": {
854
+ "markdown": true,
855
+ "help": [
856
+ "## Section Heading",
857
+ "This is a paragraph with some **bold** text.",
858
+ "This is another paragraph, with _italic_ text.",
859
+ "This paragraph has [a link](https://google.com)."
860
+ "- First bullet point",
861
+ "- Second bullet point"
862
+ ]
863
+ }
864
+ }
865
+ </code></pre></td>
866
+ </tr>
867
+
868
+ <tr>
869
+ <td>Paragraph</td>
870
+ <td>Displays a plain text paragraph with optional heading label for instructional content.</td>
871
+ <td>N/A</td>
872
+ <td><pre><code>
873
+ {
874
+ "type": "HelpContent",
875
+ "label": "Paragraph Heading (bold, H2)",
876
+ "options": {
877
+ "help": "Put the paragraph text in here"
878
+ }
879
+ }
880
+ </code></pre></td>
881
+ </tr>
882
+ <tr>
883
+ <td>Nested Paragraphs</td>
884
+ <td>Organizes multiple paragraphs hierarchically with parent and child heading levels (up to 3 levels deep).</td>
885
+ <td>N/A</td>
886
+ <td><pre><code>
887
+ {
888
+ "type": "HelpContent",
889
+ "label": "Paragraph Heading (bold, H2)",
890
+ "options": {
891
+ "help": "Put the main paragraph text in here."
892
+ },
893
+ "elements": [
894
+ {
895
+ "type": "HelpContent",
896
+ "label": "Secondary Heading (bold, H3)",
897
+ "options": {
898
+ "help": "Put the secondary paragraph text in here."
899
+ }
900
+ }
901
+ ]
902
+ }
903
+ </code></pre></td>
904
+ </tr>
905
+ <tr>
906
+ <td>Bullet Points</td>
907
+ <td>Displays a list of bullet points, useful for presenting multiple related items or steps.</td>
908
+ <td>N/A</td>
909
+ <td><pre><code>
910
+ {
911
+ "type": "HelpContent",
912
+ "elements": [
913
+ {
914
+ "type": "HelpContent",
915
+ "label": "Introductory text",
916
+ "options": {
917
+ "help": [
918
+ "First point...",
919
+ "Second point...",
920
+ "Third point...",
921
+ "Forth point..."
922
+ ]
923
+ }
924
+ }
925
+ ]
926
+ }
927
+ </code></pre></td>
928
+ </tr>
929
+ <tr>
930
+ <td>Hide/Show detailed explanations</td>
931
+ <td>Creates a collapsible section (accordion) with a title that users can click to reveal detailed content.</td>
932
+ <td>N/A</td>
933
+ <td><pre><code>
934
+ {
935
+ "type": "HelpContent",
936
+ "label": "Title: Click here to show details",
937
+ "options": {
938
+ "variant": "details"
939
+ "help": "Paragraph preceding the bullet points, below"
940
+ },
941
+ "elements": [
942
+ {
943
+ "type": "HelpContent",
944
+ "options": {
945
+ "help": [
946
+ "First point...",
947
+ "Second point...",
948
+ "Third point..."
949
+ ]
950
+ }
951
+ }
952
+ ]
953
+ }
954
+ </code></pre></td>
955
+ </tr>
956
+ <tr>
957
+ <td>Primary heading</td>
958
+ <td>Displays a large primary heading (H2) for section titles in instructional content.</td>
959
+ <td>N/A</td>
960
+ <td><pre><code>
961
+ {
962
+ "type": "HelpContent",
963
+ "label": "Primary Heading (bold, H2)",
964
+ }
965
+ </code></pre></td>
966
+ </tr>
967
+ <tr>
968
+ <td>Secondary heading</td>
969
+ <td>Displays a smaller secondary heading (H3) for subsections within instructional content.</td>
970
+ <td>N/A</td>
971
+ <td><pre><code>
972
+ {
973
+ "type": "HelpContent",
974
+ "elements": [
975
+ {
976
+ "type": "HelpContent",
977
+ "label": "Secondary Heading (bold, H3)"
978
+ }
979
+ ]
980
+ }
981
+ </code></pre></td>
982
+ </tr>
983
+ <tr>
984
+ <td>Image</td>
985
+ <td>Embeds an image in the form with configurable dimensions, alt text, and source URL.</td>
986
+ <td>N/A</td>
987
+ <td><pre><code>
988
+ {
989
+ "type": "HelpContent",
990
+ "label": "An image",
991
+ "options": {
992
+ "variant": "img",
993
+ "width": "200",
994
+ "height": "300",
995
+ "alt": "myImage",
996
+ "src": "https://picsum.photos/200/300"
997
+ }
998
+ }
999
+ </code></pre></td>
1000
+ </tr>
1001
+ <tr>
1002
+ <td>Hyperlink</td>
1003
+ <td>Creates a clickable link to an external URL with custom link text.</td>
1004
+ <td>N/A</td>
1005
+ <td><pre><code>
1006
+ {
1007
+ "type": "HelpContent",
1008
+ "options": {
1009
+ "variant": "hyperlink",
1010
+ "link": "https://picsum.photos/200/300",
1011
+ "help": "link text goes here"
1012
+ }
1013
+ }
1014
+ </code></pre></td>
1015
+ </tr>
1016
+ </table>
1017
+
1018
+ ### File Uploads {#target-uploads}
1019
+
1020
+ For when the user needs to upload supporting documentation. For a more complete description of file uploads, see [the documentation](/adsp-monorepo/tutorials/form-service/file-uploader.md).
1021
+
1022
+ <table>
1023
+ <tr>
1024
+ <th>Feature</th>
1025
+ <th>Description</th>
1026
+ <th>JSON schema</th>
1027
+ <th>UI schema</th>
1028
+ </tr>
1029
+ <tr>
1030
+ <td>Upload a File</td>
1031
+ <td>Allows users to upload a file via drag-and-drop or file selection interface, storing a file URN reference.</td>
1032
+ <td><pre><code>
1033
+ {
1034
+ "certificate": {
1035
+ "type": "string",
1036
+ "format": "file-urn"
1037
+ }
1038
+ }
1039
+ </code></pre></td>
1040
+ <td><pre><code>
1041
+ {
1042
+ "type": "Control",
1043
+ "scope": "#/properties/certificate",
1044
+ "options": {
1045
+ "variant": "dragdrop"
1046
+ }
1047
+ }
1048
+ </code></pre></td>
1049
+ </tr>
1050
+ </table>
1051
+
1052
+ #### FileUploader Control Options
1053
+
1054
+ The FileUploader Control supports these options to configure file upload behavior:
1055
+
1056
+ <table>
1057
+ <tr>
1058
+ <th>Option</th>
1059
+ <th>Location</th>
1060
+ <th>Behavior</th>
1061
+ <th>Default</th>
1062
+ </tr>
1063
+ <tr>
1064
+ <td><code>maximum</code></td>
1065
+ <td><code>componentProps.maximum</code></td>
1066
+ <td>Set a limit on how many files can be uploaded for the control. Prevents users from uploading more than the specified number of files.</td>
1067
+ <td><code>1</code></td>
1068
+ </tr>
1069
+ <tr>
1070
+ <td><code>noDownloadButton</code></td>
1071
+ <td><code>format.noDownloadButton</code></td>
1072
+ <td>When set to <code>true</code>, hides the download button in the file list, preventing users from downloading uploaded files.</td>
1073
+ <td><code>false</code></td>
1074
+ </tr>
1075
+ </table>
1076
+
1077
+ ##### FileUploader Control Options Examples
1078
+
1079
+ **Multiple file uploads with no download button:**
1080
+
1081
+ ```json
1082
+ {
1083
+ "type": "Control",
1084
+ "scope": "#/properties/supportingDocuments",
1085
+ "options": {
1086
+ "variant": "dragdrop",
1087
+ "componentProps": {
1088
+ "maximum": 5
1089
+ },
1090
+ "format": {
1091
+ "noDownloadButton": true
1092
+ }
1093
+ }
1094
+ }
1095
+ ```
1096
+
1097
+ **Single file upload with download enabled:**
1098
+
1099
+ ```json
1100
+ {
1101
+ "type": "Control",
1102
+ "scope": "#/properties/certificate",
1103
+ "options": {
1104
+ "variant": "dragdrop",
1105
+ "componentProps": {
1106
+ "maximum": 1,
1107
+ "maxFileSize": "5MB",
1108
+ "accept": ".pdf,.doc,.docx"
1109
+ }
1110
+ }
1111
+ }
1112
+ ```
1113
+
1114
+ ### Repeating Items {#target-lists}
1115
+
1116
+ _Repeating Items_ are useful when you need to capture multiple instances of similar information from your applicants. For example, you may want to collect contact information for one or more family members. With the _List with Details_ or _Object Array_ components, users can easily add as many rows as needed to complete the form. For more information on how these components work, please see the section on [Repeating Items](/adsp-monorepo/tutorials/form-service/repeated-items.html).
1117
+
1118
+ <table>
1119
+ <tr>
1120
+ <th>Feature</th>
1121
+ <th>Description</th>
1122
+ <th>JSON schema</th>
1123
+ <th>UI schema</th>
1124
+ </tr>
1125
+ <tr>
1126
+ <td>List With Detail</td>
1127
+ <td>Displays array items in a list view with the ability to click and edit detailed information for each item.</td>
1128
+ <td><pre><code>
1129
+ {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "Users": {
1133
+ "type": "array",
1134
+ "items": {
1135
+ "type": "object",
1136
+ "title": "Users",
1137
+ "properties": {
1138
+ "firstname": {
1139
+ "type": "string"
1140
+ },
1141
+ "lastname": {
1142
+ "type": "string"
1143
+ }
1144
+ }
1145
+ }
1146
+ }
1147
+ }
1148
+ }
1149
+ </code></pre></td>
1150
+ <td><pre><code>
1151
+ {
1152
+ "type": "ListWithDetail",
1153
+ "scope": "#/properties/Users",
1154
+ "options": {
1155
+ "detail": {
1156
+ "type": "VerticalLayout",
1157
+ "elements": [
1158
+ {
1159
+ "type": "HorizontalLayout",
1160
+ "elements": [
1161
+ {
1162
+ "type": "Control",
1163
+ "scope": "#/properties/firstname",
1164
+ "label": "First Name"
1165
+ },
1166
+ {
1167
+ "type": "Control",
1168
+ "scope": "#/properties/lastname",
1169
+ "label": "Last Name"
1170
+ }
1171
+ ]
1172
+ }
1173
+ ]
1174
+ }
1175
+ }
1176
+ }
1177
+ </code></pre></td>
1178
+ </tr>
1179
+ <tr>
1180
+ <td>Object Array</td>
1181
+ <td>Displays array items in an inline table format where each row can be expanded for individual editing.</td>
1182
+ <td><pre><code>
1183
+ {
1184
+ "type": "object",
1185
+ "properties": {
1186
+ "people": {
1187
+ "type": "array",
1188
+ "items": {
1189
+ "type": "object",
1190
+ "properties": {
1191
+ "firstName": {
1192
+ "type": "string"
1193
+ },
1194
+ "lastName": {
1195
+ "type": "string"
1196
+ }
1197
+ }
1198
+ }
1199
+ }
1200
+ }
1201
+ }
1202
+ </code></pre></td>
1203
+ <td><pre><code>
1204
+ {
1205
+ "type": "Control",
1206
+ "label": "People",
1207
+ "scope": "#/properties/people"
1208
+ }
1209
+ </code></pre></td>
1210
+ </tr>
1211
+ </table>
1212
+
1213
+ #### Repeating Items Control Options
1214
+
1215
+ The repeating item controls support this array-list option:
1216
+
1217
+ <table>
1218
+ <tr>
1219
+ <th>Option</th>
1220
+ <th>Location</th>
1221
+ <th>Behavior</th>
1222
+ <th>Default</th>
1223
+ </tr>
1224
+ <tr>
1225
+ <td><code>showArrayTableSortButtons</code></td>
1226
+ <td><code>options.showArrayTableSortButtons</code></td>
1227
+ <td>Enables the array sort-button setting for repeating item controls.
1228
+ <td><code>false</code></td>
1229
+ </tr>
1230
+ </table>
1231
+
1232
+ ##### Repeating Items Control Option Example
1233
+
1234
+ ```json
1235
+ {
1236
+ "type": "ListWithDetail",
1237
+ "scope": "#/properties/people",
1238
+ "options": {
1239
+ "showArrayTableSortButtons": true,
1240
+ "detail": {
1241
+ "type": "VerticalLayout",
1242
+ "elements": [
1243
+ {
1244
+ "type": "Control",
1245
+ "scope": "#/properties/firstName"
1246
+ },
1247
+ {
1248
+ "type": "Control",
1249
+ "scope": "#/properties/lastName"
1250
+ }
1251
+ ]
1252
+ }
1253
+ }
1254
+ }
1255
+ ```
1256
+
1257
+ ### Steppers {#target-steppers}
1258
+
1259
+ Steppers allow you to partition your form into one or more steps, so users can focus on one group of questions at a time. For more information on how these components work, please see the section on [steppers](/adsp-monorepo/tutorials/form-service/steppers.html).
1260
+
1261
+ <table>
1262
+ <tr>
1263
+ <th>Feature</th>
1264
+ <th>Description</th>
1265
+ <th>JSON schema</th>
1266
+ <th>UI schema</th>
1267
+ </tr>
1268
+ <tr>
1269
+ <td>Categorization</td>
1270
+ <td>Partitions form fields into multiple categories/steps that users navigate through sequentially, with automatic summary review page.</td>
1271
+ <td><pre><code>
1272
+ {
1273
+ "type": "object",
1274
+ "properties": {
1275
+ "firstName": {
1276
+ "type": "string"
1277
+ },
1278
+ "lastName": {
1279
+ "type": "string"
1280
+ }
1281
+ }
1282
+ }
1283
+ </code></pre></td>
1284
+ <td><pre><code>
1285
+ {
1286
+ "type": "Categorization",
1287
+ "elements": [
1288
+ {
1289
+ "type": "Category",
1290
+ "label": "First Name,
1291
+ "elements": [
1292
+ {
1293
+ "type": "Control",
1294
+ "scope": "#/properties/firstName
1295
+ }
1296
+ ]
1297
+ },
1298
+ {
1299
+ "type": "Category",
1300
+ "label": "Last Name,
1301
+ "elements": [
1302
+ {
1303
+ "type": "Control",
1304
+ "scope": "#/properties/last
1305
+ }
1306
+ ]
1307
+ }
1308
+ ]
1309
+ }
1310
+ </code></pre></td>
1311
+ </tr>
1312
+ </table>
1313
+
1314
+ Page steppers support these Task List and review-flow options:
1315
+
1316
+ <table>
1317
+ <tr>
1318
+ <th>Attribute</th>
1319
+ <th>Description</th>
1320
+ <th>Scope</th>
1321
+ <th>Example</th>
1322
+ </tr>
1323
+ <tr>
1324
+ <td><code>hideSummary</code></td>
1325
+ <td>Hide the Summary row on the Task List and skip the summary review page.</td>
1326
+ <td><code>Categorization.options</code></td>
1327
+ <td><pre><code>
1328
+ {
1329
+ "type": "Categorization",
1330
+ "options": {
1331
+ "hideSummary": true
1332
+ }
1333
+ }
1334
+ </code></pre></td>
1335
+ </tr>
1336
+ <tr>
1337
+ <td><code>hideSubmit</code></td>
1338
+ <td>Hide the Submit button on the summary review page.</td>
1339
+ <td><code>Categorization.options</code></td>
1340
+ <td><pre><code>
1341
+ {
1342
+ "type": "Categorization",
1343
+ "options": {
1344
+ "hideSubmit": true
1345
+ }
1346
+ }
1347
+ </code></pre></td>
1348
+ </tr>
1349
+ <tr>
1350
+ <td><code>toAppOverviewLabel</code></td>
1351
+ <td>Change the back-link text that returns the user to the Task List.</td>
1352
+ <td><code>Categorization.options</code></td>
1353
+ <td><pre><code>
1354
+ {
1355
+ "type": "Categorization",
1356
+ "options": {
1357
+ "toAppOverviewLabel": "Back to task list"
1358
+ }
1359
+ }
1360
+ </code></pre></td>
1361
+ </tr>
1362
+ <tr>
1363
+ <td><code>sectionTitle</code></td>
1364
+ <td>Group categories under a section heading on the Task List.</td>
1365
+ <td><code>Category.options</code></td>
1366
+ <td><pre><code>
1367
+ {
1368
+ "type": "Category",
1369
+ "options": {
1370
+ "sectionTitle": "The parties"
1371
+ }
1372
+ }
1373
+ </code></pre></td>
1374
+ </tr>
1375
+ <tr>
1376
+ <td><code>showInTaskList</code></td>
1377
+ <td>When set to <code>false</code>, hide the category from the Task List. Hidden categories do not render their own row, and a section header is not shown if all categories in that section are hidden.</td>
1378
+ <td><code>Category.options</code></td>
1379
+ <td><pre><code>
1380
+ {
1381
+ "type": "Category",
1382
+ "label": "What are their contact details?",
1383
+ "options": {
1384
+ "sectionTitle": "The parties",
1385
+ "showInTaskList": false
1386
+ }
1387
+ }
1388
+ </code></pre></td>
1389
+ </tr>
1390
+ </table>
1391
+
1392
+ ### Validation {#target-validation}
1393
+
1394
+ Validation is most easily accomplished through the semantics of JSON Schemas. Note the "minLength" attribute of the name property. This is needed to address a fix needed when required string fields.
1395
+
1396
+ <table>
1397
+ <tr>
1398
+ <th>Feature</th>
1399
+ <th>Description</th>
1400
+ <th>JSON schema</th>
1401
+ </tr>
1402
+ <tr>
1403
+ <td>Required</td>
1404
+ <td>Ensures that specified fields must have a value provided before form submission.</td>
1405
+ <td><pre><code>
1406
+ {
1407
+ "type": "object",
1408
+ "properties": {
1409
+ "name": {
1410
+ "type": "string",
1411
+ "minLength": 1
1412
+ },
1413
+ "isAlbertan": {
1414
+ "type": "boolean"
1415
+ }
1416
+ },
1417
+ "required": [
1418
+ "firstName",
1419
+ "lastName"
1420
+ ]
1421
+ }
1422
+ </code></pre></td>
1423
+ </tr>
1424
+ <tr>
1425
+ <td>Conditionally Required</td>
1426
+ <td>Makes a field required based on conditions defined in other field values using if-then logic.</td>
1427
+ <td><pre><code>
1428
+ {
1429
+ "type": "object",
1430
+ "properties": {
1431
+ "hasChild": {
1432
+ "type": boolean
1433
+ },
1434
+ "childsName": {
1435
+ "type": "string",
1436
+ },
1437
+ },
1438
+ "required": [
1439
+ "hasChild"
1440
+ ],
1441
+ "if": {
1442
+ "properties": {
1443
+ "hasChild": {
1444
+ "const": true
1445
+ }
1446
+ }
1447
+ },
1448
+ "then": {
1449
+ "properties": {
1450
+ "childsName": {
1451
+ "minLength": 1
1452
+ }
1453
+ },
1454
+ "required": [
1455
+ "childsName"
1456
+ ]
1457
+ }
1458
+ }
1459
+ </code></pre></td>
1460
+ </tr>
1461
+ </table>