Photo/Video Control

Add a control that captures a photo or video from the Screen user.

Control Description

The Photo/Video control has the following functionality:

  • Designing the control: While designing the Screen as a Process Designer, select whether a selected Photo/Video control is used to capture a photo or video when the Screen user interacts with that control. Optionally select a custom overlay that displays over the real-time capture area.

  • Using the control: Based on how the Process Designer configured that Photo/Video control, the Screen user may capture one photo or video directly from a laptop camera or mobile device. While doing so, an overlay image can display over the control to guide the Screen user to frame what the control captures. That user may evaluate in real-time with the control overlay whether the capture is appropriate and adequate quality. For example, the overlay can help frame taking a photograph of oneself or a national ID card to submit for an application process.

  • Send the captured video or photo to ProcessMaker IDP: After the photo or video is captured, send it to a ProcessMaker IDP folder for processing using a specified document type. Note that prior to the Screen user capturing a photo or video, ensure to configure which ProcessMaker IDP folder(s) the captured photo or video may be sent after capture. You may need to ask your ProcessMaker IDP Administrator for assistance.

This control is only available for Form-type Screens. See Screen Types.

Watch the following product tour to learn how to use a Photo/Video control.

Add a Photo/Video control to a Screen

Add the Control to a Screen

Permissions

Your user account or group membership must have the following permissions to design a Screen unless your user account has the Make this user a Super Admin setting selected:

  • Screens: Edit Screens

  • Screens: View Screens

See the Screens permissions or ask your Administrator for assistance.

Follow these steps to add this control to the Screen:

  1. Configure the Photo/Video control. See Settings.

  2. Validate that the control is configured correctly. See Validate Your Screen.

Below is a Photo/Video control.

Settings

The Image control has the following configurable settings in the Properties Panel:

Variable Panel Settings

Expand the Variable panel from the Properties Panel on the right to configure the following properties:

Variable Name

Use the Variable Name setting value in the following ways:

  • Reference this control by its Variable Name setting's value. The Data Preview panel in Preview mode represents the state of the Photo/Video control using its Variable Name value in the Request's JSON data model.

  • Reference this control's value in a different Screen Builder control. To do so, use mustache syntax and reference this control's Variable Name value in the target control. Example: {{ photo_video_1 }}.

  • Reference this value in Visibility Rule setting expressions.

See best practices when editing a Request variable name.

Label
Required

Configuration Panel Settings

Expand the Configuration panel from the Properties Panel on the right to configure the following properties:

Helper Text
What to Capture

Select one of the following that this control captures:

  • Photo: Select the Photo option to capture a still image from the device. Use this option to record a photograph of the face or a national ID card. This is the default option.

If the device has more than one camera available, such as a front and rear camera, optionally switch between them in Preview mode and during use.

Intelligent Capture: Send to IDP

Enable the Send to IDP toggle key to send the captured photo or video to a pre-configured ProcessMaker IDP folder.

If the Send to IDP toggle key is enabled but at least one ProcessMaker IDP folder is not already configured, then the following message displays when the Screen opens: 401 Unauthorized: Unable to access the IDP folders. The folders may not be configured for your environment or may not exist. Please contact your administrator. Ensure to configure a ProcessMaker IDP folder prior to deploying this Screen to production.

Understand How to Specify a Document Type

Use a Request variable to indicate the name of the Document_Type Domain's Name setting value in ProcessMaker IDP that the IDP connector uses to process the document(s). This setting does not refer to a file type, such as PDF or DOCX. Instead, this setting refers to the name of the document type in ProcessMaker IDP that has been previously trained to process document(s) in your Dossier. Note that this setting requires the Document_Type Domain's Name setting value, not its Pretty Name setting value. Reference this Request variable using mustache syntax.

To see the document types available on your ProcessMaker IDP instance, see the note Determine Which Document Type to Use in Enter the Document Type to Process section.

Understand How to Configure to Which ProcessMaker IDP Folder to Store the Processed Document(s)

Configure to which existing ProcessMaker IDP folder to store the processed document(s). Configure this folder in one of two ways:

Follow these steps to use intelligent capturing:

  1. In the Document Type setting, enter using mustache syntax the Request variable that indicates the Entity in ProcessMaker IDP that the IDP connector uses to process the document(s).

  2. From the Select Destination setting, do one of the following:

    • Use a Request Variable to configure the folder:

      1. Select the Use Request Variable setting. An edit box replaces the drop-down menu.

      2. In the edit box, enter the Request variable name without mustache syntax that specifies the folder name and then press Enter.

    • Select the folder:

      1. Ensure that the Use Request Variable setting is not selected.

      2. From the drop-down menu, select to which ProcessMaker IDP folder to store processed documents.

File Name

Optionally, click the Upload Overlay button to upload a custom overlay that displays over the real-time capture area prior to recording the photo or video. The following file types are supported:

  • GIF

  • JPG

  • PNG

  • WebP

When an overlay is uploaded, a preview displays below the Upload Overlay button.

Design Panel Settings

Expand the Design panel from the Properties Panel on the right to configure the following properties:

Background Color
Text Color

Advanced Panel Settings

Expand the Advanced panel from the Properties Panel on the right to configure the following properties:

CSS Selector Name

Then, use this name in the Custom CSS feature to apply CSS styling to this control as follows:

[selector='Submit Form'] {
    color: blueviolet;
}

See the following best practices regarding custom CSS in Screens:

Visibility Rule

For example, this control displays if the variable value tip is 1. For a detailed example of the Visibility Rule setting, see Show or Hide Controls Based on Button Selection.

Note the following regarding how to use visibility rules:

Device Visibility

Select on which device types this control displays:

  • Desktop: The control displays only on desktop devices. Enable the Show for Desktop toggle key.

  • Mobile: The control displays only on mobile devices. Enable the Show for Mobile toggle key.

Last updated

Logo

© 2024 ProcessMaker, Inc. All Rights Reserved. Except as otherwise permitted by ProcessMaker, this publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose.