Dispatch Data Destination

About

The Dispatch Data Destination takes selected data from one form and automatically dispatches it to a user through another form. This process is useful for a number of business functions, but is most commonly used for manager approvals of forms that users have submitted.

This destination streamlines workflows by allowing forms to be dispatched to users on-the-go from a mobile device.  While saving administrators time by minimizing the need to access the web administration portal on a frequent basis, this data destination is also incredibly user-friendly, with no .csv files to download and upload. 

The Dispatch Data Destination is best paired with a User Data Source. This data source provides a list of users to choose from; no maintenance of the list is required, as it updates immediately and automatically when any changes are made in the web portal. To learn more about what data types are supported for dispatch, please look at this help article: Data Formats and Supported Question and Data Types for Dispatching.

[ top ]

 

admin.pngnouser.pngnomobile.png

Basic Set Up

Create the data destination, selecting Dispatch Data Destination as the type.

dispatchDD.png

  1. Name the destination, and link forms to it.
  2. Optionally configure Filtering.
  3. Configure Dispatch Data:

 

Dispatch Data

Target Form

When the data destination executes, the Target Form will be dispatched to the selected user.  Ensure the target form is set up to allow dispatching in the Form Properties tab of the form builder.

[ top ]

 

Target User's Username

Select a user to receive the target form with dispatched data.  

  • Type in a username to always send to the same user
  • Use data record expression language to send to a user chosen in the form.  For example, a question labeled "Dispatch To" could contain a list of possible users populated by a User Data Source.  To send to the chosen user, enter %a[Dispatch To].
  • Dispatch to multiple users by separating usernames/DREL expressions with a comma or semi-colon. E.g. %a[Dispatch To]; john@abc.com

Note: If using DREL, keep in mind that this field is looking for the username.  Consequently, the answer to the "Dispatch To" field must exactly match a username -- not their user ID, Display Name, etc.  If a value other than a username is found in the "Dispatch To" question, the dispatch will fail.  When referencing the User Data Source in the form, be sure to either:

    • Choose "Username" as the Display Column, and leave the Data Column empty, or;
    • Choose any other column as the Display Column, and choose "Username"  as the Data Column.

[ top ]

 

Dispatch Data

Choose which data to send through the target form.

  • Optionally check off "Automatically dispatch to questions with matching labels."  This will take data from the dispatching form and automatically route it to questions in the Target Form with corresponding labels.
  • Select questions in the Target Form to populate with data from the dispatching form.

dispatchdata.png

[ top ]

 

Dispatching Images

Images can be dispatched between questions of the following control types:  camera, sketch pad, or signature.  This can be  useful for images that are specific to a  job, like a site-specific floor plan, a chart for the mobile user  to reference, or a sketch produced in a form from an earlier site visit or job estimate.  A photo collected from a Camera control can be dispatched to a Sketch Pad control, and vice versa.

As with all control types, checking "Automatically dispatch to questions with matching label" will take data from the dispatching form and automatically route it to fields in the Target Form with corresponding labels.

To manually configure dispatching images from the dispatching form to the target form, configure as shown below.  The Data Expression for answers that are images must be formatted as <contentType>|<bytes>.  Please note that, unlike dispatching to simple text data types, static text cannot be included in the data expression when dispatching images.  

The below example shows a photo collected by a question with the label "Photo" that is configured to dispatch to a field labeled "Photo1" in the Target Form.  

images_DispatchDD.png

 There is no difference in the data expression formatting between camera, sketch pad, or signature controls; simply use the correct question label.

Untitled.png

 [ top ]

 

Dispatching Static Images

Rather than collecting an image from the dispatching form to dispatch, the Dispatch Data Destination can dispatch a static image to the Target Form. When dispatching images through this method, images must be Base64 encoded.  Base64 encoding is typically done programmatically, but can also be done with an online tool like http://www.base64-image.de/.  Images must be formatted as image/jpg(or png)|<base64 string here>. 

 Note: The Data Expression field is limited to 4000 characters, which is not enough to accomodate most Base64 strings.  Consequently, static image dispatching is not recommended under most circumstances.

statisimage.png

[ top ]

 

Use Case: Dispatch a Link to the Data Record Document

In cases where the recipient of a dispatch needs to view data record document of the dispatching form, the URL can be dispatched to them along with other data. This URL can then be launched from directly within the form using the data type launcher functionality.  In this sample we will dispatch a web portal link to the data record .PDF.

In the Form Builder:

  1. Open the Target Form in the form builder.
  2.  Add a URL control type (Text-> URL-> Textbox).
    urltype.png
  3. Mouse over the question and Edit Properties.
  4. Enter the URL Properties tab and check off both "Allow the user to click the address to open the link"  and  "Open the link in the user's external browser".
  5. Save and close.

Data Destination Configuration: 

  1. Edit the Data Destination.  Enter the Dispatch Data tab.
  2. Enter the label of the URL control type on the left hand side.
  3. On the right side, enter the URL as follows: " https://live.prontoforms.com/data/%r[id].pdf ".   This will collect the data record reference ID of the data record that initiated the dispatch, and insert it to complete the link. dispatchurl.png

When configured as above, the recipient of the dispatch will receive a link to the completed data record, which they can then tap on to launch on their browser.

[ top ]

 

Use Case: Dispatching to Different Forms Based on an Answer

It is possible to use one "Dispatching Form" to dispatch data to a number of different forms.  The dispatching form can be simple, with a few questions containing customer contact information, or it can be complex, making use of skip logic to hide questions not applicable to what the user has selected as a target form.  In either case, a separate Dispatch Data Destination is required for each Target Form.

  1. In the Form Builder, create a dropdown question where a user can select a form name (from a data source or otherwise).  For the purposes of this example, the question label is "TargetForm", and one of the answers is "Work Order."
  2. Create a Dispatch Data Destination, and select "Work Order" as the Target Form.
  3. In the Data Destination Filtering tab, configure as shown below.   The data destination for the "Work Order" form will only execute and dispatch to a user if "Work Order" is selected.  Configure other data destinations for the other target forms similarly.
    dispatch_to_variable.png

[ top ]

Was this article helpful?
2 out of 2 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Clark Moots

    Very helpful