You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/platform/actors/development/actor_definition/input_schema/specification.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ String is the most common input field type, and provide a number of editors and
162
162
| `maxLength` | Integer | No | Maximum length of the string. |
163
163
| `enum` | [String] | Required if `editor` is `select` | Using this field, you can limit values to the given array of strings. Input will be displayed as select box. Values are strictly validated against this list. |
164
164
| `enumSuggestedValues` | [String] | No | Similar to `enum`, but only suggests values in the UI without enforcing validation. Users can select from the dropdown or enter custom value.<br/> Works only with the `select` editor. |
165
-
| `enumTitles` | [String] | No | Titles for the `enum` or `enumSuggestedValues` keys described. |
165
+
| `enumTitles` | [String] | No | Displayed titles for the `enum` or `enumSuggestedValues` properties. |
166
166
| `nullable` | Boolean | No | Specifies whether `null` is an allowed value. |
167
167
| `isSecret` | Boolean | No | Specifies whether the input field will be stored encrypted. Only available with `textfield`, `textarea` and `hidden` editors. |
168
168
| `dateType` | One of <ul><li>`absolute`</li><li>`relative`</li><li>`absoluteOrRelative`</li></ul> | No | This property, which is only available with `datepicker` editor, specifies what date format should visual editor accept (The JSON editor accepts any string without validation.).<br/><br/><ul><li>`absolute` value enables date input in `YYYY-MM-DD` format. To parse returned string regex like this can be used: `^(\d{4})-(0[1-9]\|1[0-2])-(0[1-9]\|[12]\d\|3[01])$`.</li><br/><li>`relative` value enables relative date input in <br/>`{number} {unit}` format. <br/>Supported units are: days, weeks, months, years.<br/><br/>The input is passed to the Actor as plain text (e.g., "3 weeks"). To parse it, regex like this can be used: `^(\d+)\s*(day\|week\|month\|year)s?$`.</li><br/><li>`absoluteOrRelative` value enables both absolute and relative formats and user can switch between them. It's up to Actor author to parse a determine actual used format - regexes above can be used to check whether the returned string match one of them.</li></ul><br/>Defaults to `absolute`. |
@@ -173,9 +173,10 @@ When using escape characters `\` for the regular expression in the `pattern` fie
173
173
174
174
:::
175
175
176
-
#### Select
176
+
#### Select editor for strings
177
177
178
-
Enables you to provide a list of predefined values for the string, including display titles.
178
+
The `select` editor for strings allows users to choose a value from a dropdown list.
179
+
You can either only allow users to select from a set of predefined values, or allow them to specify custom values in addition to suggested values.
179
180
180
181
##### Select from predefined values
181
182
@@ -213,7 +214,7 @@ When you want to suggest values but still allow custom input, use the `enumSugge
213
214
}
214
215
```
215
216
216
-
This creates a select dropdown with suggested values, but users can also enter custom value:
217
+
This creates a select dropdown with suggested values, but users can also enter custom values:
217
218
218
219

219
220
@@ -667,7 +668,7 @@ Editor type `globs` maps to the Crawlee's [GlobInput](https://crawlee.dev/api/co
667
668
668
669
Editor type `fileupload` enables users to specify a list of files as input. The input is passed to the Actor as an array of strings. The Actor author is responsible for interpreting the strings, including validating file existence and format. This editor simplifies the process for users to upload files to a key-value store of their choice.
669
670
670
-
#### Select editor for arrays (multiselect)
671
+
#### Select editor for arrays
671
672
672
673
The `select` editor for arrays allows users to pick multiple items from a dropdown list. This creates a multiselect field in the UI.
673
674
You can either only allow users to select from a set of predefined values, or allow them to specify custom values in addition to suggested values.
0 commit comments