This page contains information related to an old version of the File Upload Component.
To take advantage of the latest features and improvements, we always recommend you use the latest version whenever possible. See the latest version's page for information about what's been changed.
Function: a!fileUploadField_17r1()
Allows users to upload a file. File upload is only enabled on start and task forms.
See Also: Document, Document or Folder
Parameters
Name | Keyword | Type | Description |
---|---|---|---|
Label | label | Text | Optional text to display as the field label. |
Label Position | labelPosition | Text | Optional text to determine where the label appears. Valid values include
|
Instructions | instructions | Text | Optional text displayed below the field's value. |
Help Tooltip | helpTooltip | Text | Displays a help icon with the specified text as a tooltip. The tooltip displays a maximum of 500 characters. The help icon does not show when the label position is "COLLAPSED" . |
Target | target | Document or Folder | Determines the eventual location of the uploaded file. When a Folder, the uploaded file is created as a document in that folder. When a Document, the uploaded file is created as a new version of that document. |
Document Name | documentName | Text | Optionally determines the name for the document. When not provided, the uploaded filename is used. |
Document Description | documentDescription | Text | Determines the description for the document. When not provided, the description of the new file or version is empty. |
Selected Document | value | Document | The document associated with this field. |
Save Document To | saveInto | Save Array | One or more variables that are updated with the document when the user uploads a file. Removing an uploaded file saves a null document. Use a!save() to save a modified or alternative value to a variable. |
Required | required | Boolean | Determines if a value is required to submit the form. Default is false . |
Required Message | requiredMessage | Text | Custom message to be displayed when the field's value is required and not provided. |
Disabled | disabled | Boolean | Determines if the user is prevented from changing the value and determines if the field should be grayed out. Default is false . |
Validations | validations | Text Array | Validation errors to be displayed below the field when the value is not null. |
Validation Group | validationGroup | Text | When present, this field is only validated when a button in the same validation group is clicked. |
Visibility | showWhen | Boolean | Determines whether the component is displayed on the interface. When set to false, the component is hidden and is not evaluated. Default: true. |
Notes
\ / " ; : | ? ' < > *
Examples
To experiment with examples, copy and paste the expression into an interface object.
Single File Upload
1
2
3
4
5
6
7
8
=a!fileUploadField_17r1(
label: "Upload resume",
instructions: "Accepted Formats: docsx, xlsx, png, etc",
target: cons!RESUME_FOLDER,
value: ri!file,
saveInto: ri!file,
required: true
)
Displays the following:
Using the field to upload a file called "Resume.pdf" displays the following:
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Incompatible | |
Sync-Time Custom Record Fields | Incompatible | |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Incompatible | Cannot be used to configure a process report. |
Process Events | Incompatible | Cannot be used to configure a process event node, such as a start event or timer event. |
a!fileUploadField_17r1 Component