As explained in the How it works article, you can use components such as NUMBER to collect data from the smartphone.

The NUMBER component will open a dialog box with a numeric keyboard, like this:


# Example

Suppose that you want to collect the quantity of a product from the smartphone.

You can do it by adding a NUMBER component to your output template:

Then, when you scan a barcode, the app will open a dialog box with a numeric keyboard.

See it in action:


# Advanced

# Filters

Filters allow you to validate the input using regular expressions.

# Example

If you want to collect only positive numbers, you can use the following filter:


This way it will accept 134556, 248455, 315151, etc. but it will not accept 0, -1, -2, etc.