The ProcessMaker Mobile application has a control called QR Code, which is a trademark for a kind of matrix code or two dimensional code. Ensure to select or create a variable for the QR Code control so the QR code saved by the user can be stored in the database.
QR Code Properties
First, create a new Dynaform, then on the left side of the Dynaform open the Mobile Controls tab to display the mobile controls. Drag and drop the QR Code control into the form. Click on it to display the properties on the left side of the screen.
The first property is Type, which only shows the name of the field, in this case "scannerCode". The next property is Variable, and as mentioned in the overview, a variable must be created or selected for this field. Click the ellipsis ... and a new window with all the created variables will open. Select or create a variable. In this example the scannercode variable is selected.
The properties ID and Name are filled in by default and don't need to be changed unless programming code is going to be used. The Label property will help the user change the name of the field displayed on the Dynaform. In this case we changed the Label property to "Code Scanner", but it can be changed to any label the user likes.
The Hint property is next, and next to it is a small blank box where a description of the field can be written. This description will be displayed to the end user when the "?" next to the field in the Dynaform is hovered over. The last property of this field is the Required property, which is a checkbox that can be clicked if the end user needs to fill out this field to submit the Dynaform and continue the process.
The application uses webkit tools exclusively for Android and iOS to display the form fields, thus forms are not rendered the same way on the mobile app as in the web edition (in the preview of the designer or when running cases). The screenshot below shows the QR Code control running on the Mobile app.
|Until ProcessMaker Mobile 1.3.4||As of ProcessMaker Mobile 2.0.1|
Now see what the QR Code control looks like when opening a case in the web edition after using the mobile application.
Use the following QR code to redirect to the ProcessMaker wiki.
Finally, the table below shows the property specifications mentioned before.
|Type||location (read only)|
Click on the ... option to select the variable from the list of available variables. Check this section to learn more about how to relate a variable to a control.
The variable used for GeoMap is going to be Float.
HTML unique identifier.
|Name||HTML unique identifier, set by default.|
|Label||The label of the control displayed on the Dynaform, can be changed.|
|Hint||Used to show help when the dropdown is rendered. It is shown when the pointer of the mouse is hovered over the ? icon.|
|Required||By checking this option, a red asterisk is added next to the label to indicate that the field is required. It means that the end user must select an option or fill in the control before the Dynaform can be submitted.|