Working with link buttons in QuickCapture

2316
11
04-27-2021 04:49 PM
Mandy_Li
Esri Contributor
5 11 2,316

What is a link button?

 

A Link button allows you to open other mobile apps or web applications from ArcGIS QuickCapture app by specifying the target URL for the button. You can configure a link button to

  • Open a website
  • Open a PDF file that hosted online
  • Open a dashboard from your device’s browser
  • Launch Survey123 field app
  • Launch other native apps on your device

In short, with the link button, you can use your QuickCapture project as a launchpad to open other apps.

 

Configure the URL for link button

 

First and foremost, you’ll need to add a link button to your QuickCapture project. To do this, simply drag the link button and drop it to the project preview in Designer. You will also note there’s a link icon on the top left that indicates this is a link button.

Add link button.gif

 

 

Configure link button to open a website/web app

 

The most basic idea is that you can use link button to launch any URL from QuickCapture, e.g., a website that provides support information for the end-users. 

esri url.png

 

Moreover, you can include dynamic content into the target URL and pass captured information from QuickCapture to the URL. For example, with the URL parameters, you can define the scale level and center the web map with the captured location, or you can enhance the dashboard app by adding URL parameters and the trigger actions.

In this case, you need to manually construct the link button URL and predefine values for the URL parameters. QuickCapture supports using fixed values, device variables, or a project user input variable to add to the constructed URL. In the steps below, I will configure the link button to open a dashboard app, but also add a URL parameter to have the dashboard always center the map based on user’s captured location when the link button is pressed from QuickCapture.

  1. Create a dashboard app and configure a URL parameter (a geometry parameter named ‘point’) for it. Also, configure actions for the parameter, e.g. flash and zoom when the value of the parameter changes.
  2. In QuickCapture Designer, select the link button and configure it to launch a URL.
  3. Continue constructing the dashboard URL by adding the geometry parameter and assigning QuickCapture variables, i.e. ${longitude} and ${latitude} to this parameter. You can see that the QuickCapture variable is represented with a dollar sign and braces, this means the actual value of it will be automatically filled in by the QuickCapture app when this button is pressed.

dashboard url.gif

Save the project and download it to your device. Press the Dashboard button in the project. Note that the dashboard app is centered at the current location and has a flashing effect that was previously configured in the dashboard app.

 

Configure link button to launch native apps

 

Link button can also be used to launch native apps on your device. You can launch communication apps for the end-users to send an email, a text message, or make a phone call to their supervisors. In this manner, the link button enables users to send instant feedback while they are still working in the field. Here are some examples of how you can construct the link (encoding the URL parameters is recommended) to open the messaging apps on your device.

  • Email—mailto:quickcapture@esri.com?subject=Fix%20the%20pipe&body=We%20really%20need%20to%20fix%20the%20pipe
  • SMS—sms:0291920995 (On Android, a message body can also be included: sms:0291920995?body=We%20really%20need%20to%20fix%20the%20pipe)
  • Phone—tel:0291920995

Of course, you can also use the link buttons to launch Field Maps or Collector by providing the app link in the URL editor.

 

Link to Survey123 from QuickCapture

 

You can use link buttons to launch Survey123 field app from QuickCapture. In QuickCapture designer, we made the configuration/integration experience as easy as possible. If you want to link to a survey from QuickCapture, you don’t have to manually construct the Survey123 link or custom URL, QuickCapture Designer will do it for you. In Designer, you can not only configure a link button to launch Survey123 field app directly and link to an existing survey, but also add survey questions and pass dynamic content to this selected survey. Again, you can match a fixed value, a device variable, or a project user input variable to the survey question, and the actual value for these variables will be captured and replaced by QuickCapture app through the link button. Optionally, you can pass captured location in QuickCapture as the input for the geopoint question in the survey, and configure the experience to return to QuickCapture after a survey is successfully submitted.

Let’s use the Pipeline Patrol project to demonstrate how to use QuickCapture and Survey123 together to record daily pipeline patrols and document identified hazards. In the project, patrols that encounter no issues are usually recorded with the tap of the Patrol Complete button; If any hazards are identified, they can be captured with additional buttons; For hazards that require detailed reporting, you can launch Survey123  from QuickCapture to collect more information through the smart form in Survey123:

  1. First, add the link button Valve Leak and set it to launch the Survey123 field app.
  2. Select a survey you want to link to.
  3. Select and add questions from the survey and pass predefined values to these questions. When configuring this, Designer is automatically constructing the Survey123 custom URL based on your selection made on the UI.
  4. Toggle on the options to pass location to Survey123 and return to QuickCapture after the survey submission.

s123 link.gif

 

Save the project and download it to your device. From the video below, you can see the Survey123 field app is automatically opened when pressing the Valve Leak button from the project. You may also notice that the questions we configured from the Designer are already populated with the captured values now in Survey123. Once the survey is submitted, it will jump back to the QuickCapture app to continue data capture. This capability streamlines the field data collection workflow and optimizes different data capture scenarios. For rapid data collection, simply keep tapping the buttons in the QuickCapture project; For detailed data entry, use the link buttons to open Survey123 to add more information.

 

Let us know if you have any feedback or questions on this.

11 Comments
BertKraan1
Occasional Contributor III

This is really great news. I use a link to a survey as well as to a dashboard. My fieldworkers are happy! and I more so.

thank you, excellent blog!

SusanMathai
New Contributor III

Excellent Blog!!!

Thanks a lot Mandy.

 

SusanMathai
New Contributor III

Hi Mandy,

 

Why is QuickCapture not listed in Microsoft flow power automate? I see Survey123 listed. 

Our IT dept has blocked other 3rd party webhooks and so cannot use integromat, I am able use survey123 forms and send email but not through QuickCapture

Please suggest how to send sms or email with photos in QuickCapture.

I appreciate your help.

 

SusanMathai_0-1635370142073.png

 

 

Mandy_Li
Esri Contributor

Hi @SusanMathai , please see this post. Let us know if you have any other questions. 

SusanMathai
New Contributor III

Hi Mandy,

 

Thanks for the link, can you please show the steps as an example to create a webhook with URL as stated in the link by Johnathan Hasthorpe, in absence of a particular module( in this case QuickCapture module).

I greatly appreciate your help.

 

 

 

 

 

 

ToddWilliams4
New Contributor

Hi Mandy,

This is a great feature and have been using this, unfortunately all of a sudden with no changes to the Apps when you submit the Survey123 it goes back to the Required questions in QuickCapture not to the main page which it used to do.

Any ideas on why this is happening?

 

Thanks

Todd

 

 

Ryan_Gould
New Contributor III

@ToddWilliams4 

We had the same issue. The URL seems to reopen the project on the recall. I think this triggers the user inputs. I removed the recall URL parameter, and instructed my users to just tap on the QuickCapture icon to return to the project. This s doesn't ask t for the user inputs. 

I hope this helps.

Mandy_Li
Esri Contributor

@ToddWilliams4 It does sound like theQuickCapture project is reopened on the callback, but it shouldn't, so this may be a bug in the app. Can you provide more details about the configuration of your project, do you have required project user inputs in the project? Or if you're more comfortable taking it offline, please send it to quickcapture@esri.com Thanks!

JohnathanHasthorpe
Esri Regular Contributor

I believe we have fixed this in the beta. Please try out the version on here: https://earlyadopter.esri.com/project/version/default.html?cap=9c6a1e46-87c3-4c7f-b5c6-f8f4e0bc2df3&... and let us know.

ToddWilliams4
New Contributor

Thanks @Ryan_Gould  I have done as you have suggested for now and works just an extra click for users but not a show stopper.

@Mandy_Li  Yes does have required project user inputs I will email further details about the project, thanks

@JohnathanHasthorpe I have tried this and works! Thanks. Next question when is this likely to be rolled out? 🙂

JohnathanHasthorpe
Esri Regular Contributor

@ToddWilliams4 - This will be out in early September 2022 (1.15)

About the Author
Product Engineer at Esri.