Overview

ProcessMaker Mobile features an Image control, which lets the user take a picture from the camera of a smartphone and save it to a Dynaform, or upload a picture from the current gallery of the smartphone.

Image Properties

The properties of the Image control can be found under the Mobile Controls tab. To use it, simply drag and drop the control onto the form. Click on the Image control in the Dynaform to display the properties, which are shown in the image below.

The first property is Type, which only shows the name of the field, in this case "imageMobile". The ID and Name properties are filled in by default. The ID of all the controls is automatically filled in with "ControlTypexxxxxxxxxx", where "xxxxxxxxxx" represent the correlative number of the control inside the designer. The Name property is also set by default. When the Name property is changed, the name of the field on the Dynaform will remain unchanged.

The next property is label, which allows the user to change the label of the control field on the Dynaform. In this case we changed it to "Image", but it can have a different name when running a real case.

It is possible to associate an input document with a photo control through the Input Document property.

This means that the photo taken or uploaded with the control can be displayed at a later point inside an input document. One advantage of associating a photo control with an input document is that the input document interface can be used to view all the photos taken or uploaded in the case, as well as delete and add new versions if the user has the correct Process Permissions and versioning is enabled.

Note that the file size, extension and other properties configured in the input document won't apply to the photo file recorded or uploaded to the photo control. Nevertheless, photos will inherit the destination path and the tag properties from the input document.

After the Input Document property there are four more properties. The Hint property allows the user to display information about the control field in the Dynaform. The description to guide the user can be entered into the white textbox next to the Hint property in the left panel.

The next property is Required, which is a checkbox that can be clicked if the end user needs to fill in the field before they can submit the Dynaform and continue with the process.

The last two properties are Enable Camera and Enable Gallery. Check the Enable Camera property to allow the use of the device's camera to take a new picture. If this option is unchecked, the end user will not be able to take a picture with their device's camera to enter into the Dynaform.

Check the Enable Gallery property to allow the end user to use the device's gallery to choose a picture. If unchecked, the mobile app won't allow the end user to choose images from the gallery.

If both options are checked, the end user will have the option to choose between the camera or the gallery in the popup dialog.

The application uses webkit tools exclusively for Android and iOS to display the form fields, thus forms are not rendered the same way as in the web edition (in the preview of the designer or when running cases). The screenshot below shows the Image control running on the mobile app.

This is what the Image control looks like when opening a case in the web edition after saving the image in the mobile application.

Finally, the table below shows the property specifications mentioned before.

Property Description
Type imageMobile (read only)
ID

[Required]

Control unique identifier

Name Control name, set by default (but can be edited)
Label The next property is Label, which allows the user to change the label of the control field on the Dynaform.
Input Document Used to link an Input Document to the control.
Hint Used to show a help message when the field 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. This property does not allow the end user to submit the Dynaform until an image is uploaded.
Enable camera By checking this option, the mobile app allows end users to use the device's camera to take a picture.
Enable gallery By checking this option, the mobile app allows end users to choose a picture from the device's gallery.