Altova MobileTogether Designer

Let User Scan Barcode

Home Prev Top Next

When this action is triggered, the camera application of the client device is launched and the end user can scan a barcode. When the scan is completed, MobileTogether automatically enters the barcode and the corresponding barcode format into two separate XML nodes. For example, if an ISBN barcode is scanned, then the ISBN number and the ISBN barcode format (which is EAN-13) are saved, respectively, to the two nodes specified in the definition of the action (Result Node and Result Format Node, respectively). This barcode information is then available to the design as XML data.


The Let User Scan Barcode action (see screenshot above) has the following options:


Result Node: The page source node where the barcode data is saved.

Result Format Node: The page source node where the format of the scanned barcode is saved. The format of the scanned barcode is detected automatically and saved to this node. The format names that are entered in this node are entered exactly as given in the list of supported formats below.

Barcode formats for which to scan: You can select: (i) All barcodes, (ii) barcodes that you list by adding entries and then selecting a format in each entry's combo box, or (iii) a list of barcodes that is returned as an XPath sequence in which each item is a string that is a single barcode format (for example: "Aztec", "Codabar", "Code 39"). If you set this filter with an XPath expression, then make sure to use the name of the format exactly as it is given in the list of supported formats below.


Supported barcode formats

The currently supported barcode formats are listed below, together with limitations where these apply.


Format name




Not on iOS

Code 39

Code 93

Code 128

Data Matrix

iOS: versions >= 8




Detected as Code 128


iOS: versions >= 8

PDF 417

QR Code


Not on iOS


Not on iOS


iOS: Detected as EAN 13



Note: No barcode support is available in web clients.


MobileTogether extension functions

MobileTogether provides a range of XPath extension functions that have been specifically created for use in MobileTogether designs. Some functions can be particularly useful with specific actions. For example, mt-available-languages() returns the languages in which the solution is available and could, for example, be used with the Message Box action. If a function is especially relevant to this action, it is listed below. For a full list of extension functions and their descriptions, see the topic MobileTogether Extension Functions.


© 2017-2023 Altova GmbH