JourneyApps Legacy Docs
Return to JourneyApps Docs
  • UI Components
    • button (v1) (deprecated)
    • button (v2) (deprecated)
    • capture-coordinates (legacy docs)
    • capture-file (legacy docs)
    • capture-signature (legacy docs)
    • display-file (legacy docs)
    • display-signature (legacy docs)
    • info-table (legacy docs)
    • list (legacy docs)
    • menu (deprecated)
    • object-dropdown (legacy docs)
    • object-table (v1) (deprecated)
    • object-table (v2) (deprecated)
    • scan-barcode (legacy docs)
    • single-choice-dropdown (legacy docs)
  • JS/TS APIs
    • dialog (deprecated)
    • confirmDialog (deprecated)
    • generateCSV (deprecated)
    • saveFile (deprecated)
  • Other Features
    • Access Control Rules (deprecated)
    • Global View (app.xml) (deprecated)
    • Linking Views (deprecated)
    • Sync Rules v1 (deprecated)
  • Sync Rules v2 (legacy docs)
    • Migrating to Sync Rules v2
  • Manage App Users (deprecated)
Powered by GitBook
On this page
  • Example
  • Configuration
  1. UI Components

capture-file (legacy docs)

Previouscapture-coordinates (legacy docs)Nextcapture-signature (legacy docs)

Last updated 2 years ago

These capture-file docs are out of date

New functionality and features were added to capture-file in version 4.80.0 of the JourneyApps Runtime. Please refer to the latest docs .

The Capture File component allows users to upload a file from the device.

Container compatibility

The capture-file component currently only works on the Windows JourneyApps Container version 4.6 and higher, and Android and iOS from from 4.43 and higher.

Example

<!-- Variables go here: -->
<var name="current_file" type="attachment" media="application/pdf" />

<!-- Components go here: -->
<capture-file bind="current_file" required="false" />

Configuration

The <capture-file> tag accepts the following configuration options:

Option
Required
Details

bind

required

Variable/field in which to store the file. Must be a variable or field of type attachment.

label

required

Text to display on the capture-file component before a file is selected. It can be a format string to make the text dynamic. If not specified, defaults to the value of the field specified in bind. To have no label, specify label="".

required

optional

true if a file must be selected before proceeding to another view. Defaults to false.

on-capture

optional

The JavaScript/TypeScript function call to be performed when the file is captured. (Added with v4.40.5 of the JourneyApps Container)

show-if

optional

Controls whether the component is hidden or shown. The argument specified to show-if can either be a literal boolean value (true or false), or it can specify a variable, parameter or field that can be a string, number, object, etc. that evaluates to false or evaluates to true. If the component also specifies required="true", but it is hidden, the validation will be ignored/skipped.

hide-if

optional

The opposite of show-if (see above).

here