-
Notifications
You must be signed in to change notification settings - Fork 1
/
request-user-input-example.jsonc
112 lines (112 loc) · 3.85 KB
/
request-user-input-example.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[
/* EXPLANATION */
{
"name": "", // Internal name of the input field. Value must be JSON key proof, so spaces or special characters are not allowed! The value of the input field will be passed to the flow in the user.input object with the key of this value
"label": "", // Label for input field
"placeholder": "", // Placeholder for input field (optional)
"type": "Single line text | Multi line text | Number | Email | Dropdown | Date | People picker | Combo box | Lookup | Multi lookup", // Input field type
"required": true, // Whether the input field is required
"minDate": "", // Only required if type equals date. Minimum allowed date for date input field
"maxDate": "", // Only required if type equals date. Maximum allowed date for date input field
"selectionLimit": 1, // Only required if type equals people picker. Maximum number of people that can be selected for this input field
"groupName": "", // Optional and only used if type equals people picker. Name of the SharePoint group out of which people can be selected in the input field
"options": [{ "key": "", "text": "" }], // Only required if type equals dropdown or combo box. The choices displayed in the dropdown input field
"lookupListName": "", // Only required if type equals lookup or multi lookup. Name of the SharePoint list out of which items can be selected in the input field
"lookupDisplayColumn": "", // Only required if type equals lookup or multi lookup. Name of the column in the SharePoint list that should be displayed in the input field
"multiSelect": true // Only required if type equals dropdown, combo box, lookup or multi lookup. This should be true if type equals multi lookup. Whether multiple items can be selected in the input field
},
/* EXAMPLES */
{
"name": "employeeNumber",
"label": "Employee number",
"placeholder": "Enter your employee number",
"type": "Number",
"required": false
},
{
"name": "name",
"label": "Name",
"placeholder": "Enter your name",
"type": "Single line text",
"required": true
},
{
"name": "email",
"label": "Email",
"placeholder": "Enter your email address",
"type": "Email",
"required": true
},
{
"name": "date",
"label": "Date",
"placeholder": "Select a date",
"type": "Date",
"required": false,
"minDate": null,
"maxDate": null
},
{
"name": "colleague",
"label": "Colleague",
"placeholder": "Select a colleague",
"type": "People picker",
"required": true,
"selectionLimit": 1,
"groupName": null
},
{
"name": "status",
"label": "Status",
"placeholder": "Select an option",
"type": "Dropdown",
"required": true,
"options": [
{ "key": "approved", "text": "Approve" },
{ "key": "rejected", "text": "Reject" }
],
"multiSelect": true
},
{
"name": "tags",
"label": "Tags",
"placeholder": "Select one or more options",
"type": "Combo box",
"required": false,
"options": [
{ "key": "A", "text": "Tag A" },
{ "key": "B", "text": "Tag B" },
{ "key": "C", "text": "Tag C" },
{ "key": "D", "text": "Tag D" },
{ "key": "E", "text": "Tag E" }
],
"multiSelect": false
},
{
"name": "customer",
"label": "Customer",
"placeholder": "Select an option",
"type": "Lookup",
"required": false,
"lookupListName": "Customers",
"lookupDisplayColumn": "Name",
"multiSelect": false
},
{
"name": "departments",
"label": "Departments",
"placeholder": "Select one or more options",
"type": "Multi lookup",
"required": false,
"lookupListName": "Departments",
"lookupDisplayColumn": "Title",
"multiSelect": true
},
{
"name": "comments",
"label": "Comments",
"placeholder": "Enter your comments",
"type": "Multi line text",
"required": false
}
]