Select to view content in your preferred language

Using URLs to populate project user inputs

1813
3
08-25-2021 05:54 AM
JohnathanHasthorpe
Esri Regular Contributor
3 3 1,813

User Inputs

 

QuickCapture project users tap big buttons to capture types of features. The location of the feature is taken from the location of the device, and the attribute values are either fixed, or calculated on the fly using device variables. On top of this, buttons can be configured to allow user enter additional values through the use of user inputs

User inputs allow users to enter (or select) a value that is subsequently written to a specific field of a captured feature, and they come in two types:

  • Button user inputs – Where the value is entered after a project button is pressed. For example a user entering a count that gets written to the count field of the captured feature.

2021-08-25_22-47-23 (1).gif

  • Project user inputs – Where the value is entered before a project buttons is pressed. For example a user could enter their cost centre, which then gets written to the costCent field of any records that are subsequently captured. 

2021-08-25_22-46-08 (1).gif

Both input types support free text (single or multiline) or choice lists to help streamline entry. They ultimately make your your projects more flexible, and help reduce the number of buttons that you need to inlude. However, there are some key differences that you should be aware of before we continue:

  • Project user inputs are set up at the project level. Meaning that they can be assigned to any button (from any layer) in the project - as long as the field being updated is text. Button user inputs on the other hand are linked to the specific layer/button/field they were created from.
  • Although project user inputs support choice lists, these lists are created managed at the project level. At the current release (1.10), choice lists can't be created from any coded value domains in the target layer. Conversly, button user inputs do support both coded value and range domains.
  • Project user inputs support URL parameters, where button user inputs do not. Due to this last point, the rest of the blog will focus on project user inputs only.

To learn more about creating user inputs, see the following blog: https://community.esri.com/t5/arcgis-quickcapture-blog/understanding-user-inputs-in-arcgis-quickcapt...

Project user input URL paramters

 

From 1.10 of the mobile application, we included support for up to 3 user inputs (up from a previous of 1). This meant that the user could, for example, enter their cost center, the project number and company) and have these values written to specific fields of each and every feature they subsequently captured. Further more, the workflow could be streamlined (and made more robust) if these inputed values could prepulated. 

This is possible with the use of a URL paramter. Essentially you can construct a URL that when launched would do the following:

  • Launch the QuickCapture mobile app, or if not yet installed on the device, take the user to the appropriate app store so it can be downloaded
  • Download and open a specific project
  • Automatically populate the project user input(s) with fixed values

For example, the following URL will download a project and pre-populate the cost center project user input with the value ES001

arcgis-quickcapture://?itemId=ee28345410cc4647a74ef66f54f237e&userInput:001=ES001

If the cost center later changed, then the URL would need to be updated with a new cost center and redistributed. Alternatively, the user could manually update the value in the app. 

 

Understanding the URL Scheme

 

Next up we’ll break down the URL to help you better understand it. So, here we go........

To launch the QuickCapture mobile app, we use the custom URL for QuickCapture:

arcgis-quickcapture://

As long as the app is installed on the device, this link will launch it.

 

To launch the QuickCapture mobile app, and download/open a specific project, we use this:

arcgis-quickcapture://?itemId=<id>
  • ? is put in front of any parameters included in the URL.
  • itemID is the itemID parameter name
  • = is the operator
  • <item id> Should be replaced with the item id of the project that you want to download/open. In the example above it was: ee28345410cc4647a74ef66f54f237e

This item id can be easily obtained from the URL of the project when opened in the Quickcapture Web Designer. 

JohnathanHasthorpe_1-1629810276756.png

 

To open the project and pre populate one project userInput, we use this:

arcgis-quickcapture://?itemId=<item id>&userInput:<input id>=<value>

Lets focus on the the last part of the URL and break it down:

&userInput:<input id>=<value>
  • & denotes an additional paramter in the URL
  • userInput is the userInput parameter name
  • : is a seperator between the parameter name and the <input id> 
  • <input id> is the id of the user input. This is used to map the entered value to the correct user input in the project. These are a string based number, for example 001, 002 or 003.
  • = is the operator
  • <value> is the value to enter into the project user input

In order to get the <input id>, you need to open the project in the QuickCapture Web Designer and then go into the JSON editor. Then scroll down to the userInput{} array and look for the project userInput you are interested in. 

UserInputJSON.gif

Note that both button and project user inputs are in the same array, so check the mode property is project when copying the id.

Once you understand the URL structure for a single projet user input, it should be simple enough to expand the url to populate all three (if your project supports this many). Take a look at the following example:

arcgis-quickcapture://?itemId=77eb6d7d68c64f928bcd9135b2516e4c&userInput:001=1001&userInput:002=quickcapture@esri.com&userInput:003=Running

This passes 1001 to project user input 001; quickcapture@esri.com to project user input 002; and Running to project input 003.

Note: Although user input ids may match display order (e.g. 001, 002, 003), this is not guaranteed. Other combinations are possible, e.g: 003, 001, 002.

When constructing these URLS, make sure the values being passed to the project user inputs are valid. For example, if the project user input is a choice list, then make sure you are passing a value that is in the list. Or if the project user input has an input mask applied (restricting the values can be entered), the passed in value needs to comply If this is not the case, the URL will launch the project and open on the project user input page - but no value will be entered. It will then be up to the user to maually enter a valid input.

 

Finally, a note on URL distribution. You can open the link by pasting it into a web browser, share the link via an email, or even use them to create a QR Code that can be scanned. You can try the latter by scanning the following with your device camera (this will download a test project to try out):

JohnathanHasthorpe_0-1629893827679.png

If you want to find out more about the QuickCapture custom URL scheme or the alternative of app links (https://quickcapture.arcgis.app) please see the documentation.

 

 

3 Comments
avall003
Observer

hi @JohnathanHasthorpe

We have a QC project with 2 userInputs, and now we need to create a link to QC from another app. We 

The URLs we build following the esri documentation is:

https://quickcapture.arcgis.app?portalUrl=staging.domain.com/portal&itemID=75467d51eef142ad8758fcc337fc8c04&userInput:001=220233963

https://doc.arcgis.com/en/quickcapture/help/integratewithotherapps.htm 

We are facing 2 problems using this URL with app version 1.16.294 in android:

- Device: Redmi Note 8 Pro
- Versió del Qt: 5.15.6
- Versió de l'AppFramework: 5.4.142
- Plataforma: android
- Versió del sistema operatiu: 11.0

Informació de l’aplicació
- Nom de l’aplicació: ArcGIS QuickCapture
- Versió de l'aplicació: 1.16.294

 

Problem 1: Project not opening if QC app closed

The project ID from the URL, only opens when the QC app is already in background at android. If the app is killed (not in background), then QC is launched but not the project, it stays in the project selection list.

is this a known problem?

 

Problem 2: User input in url is invalid

As I said our project has 2 inputs, none of them are mandatory. Using the provided URL with only one of the userInputs, always says that the second input has an invalid value.

 user input invaliduser input invalid

We also tried different configurations, or even reordered the input ids (001,002,...) without success. The requirement is to have 2 inputs, but only pass at the URL one of them. Is this possible? 

thanks in advance!

JohnathanHasthorpe
Esri Regular Contributor

For problem 1 - can you test the latest version of the beta app on EAC? The build is 1.17.23 and should address the issue.

For problem 2 - Can you share the project and layers with the following user QCCreator. You will need to create a group and invite the user to the group (and share the project and layers with the same group). I'll test the project and confirm if this is a bug.

Thanks

John

avalls-nexusgeografics
New Contributor

Problem 1: Version 1.17.23 solves this issue, now the project opens directly.

What is the roadmap of the new version? Will be published soon to stores?

Let me add that this version has a different behaviour related to portalUrl param: Same link tested with 1.16, now with 1.17 the first time asked "switch to a different portal", even it's the same portal (enterprise, not online). 

Problem 2: Still present with 1.17.23. Cannot share it, as it's an enterprise portal, not AGOL.

I can provide you a recording (will expire in few days): https://drivebox.nexusgeografics.com/f/be326ac4248e4474b532/

and the json definition of the project (urls replaced), hope it helps:

 

{
  "basemap": {
    "type": "WebMap",
    "itemId": "572c6a40b44d4265bab78a36168ca0a0",
    "mapAreas": [],
    "required": true,
    "useDefaultBasemap": false,
    "zoomLevel": null
  },
  "dataSources": [
    {
      "featureServiceItemId": "977a15b963ea4eb284ffc872922a58a0",
      "dataSourceId": "7538f2f9-71ca-4d6f-ad59-42b4e7182478",
      "url": "https://staging.domain.com/serverbm/rest/services/Hosted/Incidencies_i_punts_a_revisar/FeatureServer/0",
      "oicItemId": null
    },
    {
      "featureServiceItemId": "977a15b963ea4eb284ffc872922a58a0",
      "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
      "url": "https://staging.domain.com/serverbm/rest/services/Hosted/Incidencies_i_punts_a_revisar/FeatureServer/1",
      "oicItemId": null
    },
    {
      "featureServiceItemId": "977a15b963ea4eb284ffc872922a58a0",
      "dataSourceId": "9d472274-3071-4ba3-a6fe-e29bbeefd2de",
      "url": "https://staging.domain.com/serverbm/rest/services/Hosted/Incidencies_i_punts_a_revisar/FeatureServer/2",
      "oicItemId": null
    }
  ],
  "itemId": "75467d51eef142ad8758fcc337fc8c04",
  "minVersion": "1.16.286",
  "notificationsInfo": {
    "webhooks": []
  },
  "preferences": {
    "allowEditLocation": true,
    "splitScreen": true,
    "backgroundColor": "#0e00c2",
    "distanceThreshold": 5,
    "horizontalAccuracyError": 30,
    "horizontalAccuracyWarning": null,
    "undoThreshold": 6,
    "adminEmail": "avalls@nexusgeographics.com",
    "coordinateNotationFormat": "DD"
  },
  "templateGroups": [
    {
      "backgroundColor": "#f3f3f4",
      "columns": 1,
      "columnSpacing": 12,
      "expanded": true,
      "label": "Rastre",
      "labelColor": "#ffffff",
      "labelFontSize": 16,
      "locked": false,
      "name": "Rastres",
      "rowSpacing": 12,
      "templates": [
        {
          "cameraInfo": {
            "mode": "none",
            "imageSize": "large",
            "maxPhotos": 0,
            "minPhotos": 0,
            "required": false,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": true,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "9d472274-3071-4ba3-a6fe-e29bbeefd2de",
            "inputMode": "locationSensor",
            "type": "esriGeometryPolyline",
            "usePhotoXY": false,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "INICIAR  / ATURAR       RASTRE",
            "shape": "rounded",
            "size": "large",
            "color": "#ffffff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#000000",
            "outlineWidth": 8,
            "shadowColor": null,
            "image": null
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": "${userInput:001}"
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "efectius",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "id_maniobra_i_estat",
              "value": null
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${startTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": "${endTime}"
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "nom_pev",
              "value": null
            },
            {
              "fieldName": "indicatiu",
              "value": null
            },
            {
              "fieldName": "grup_maniobra",
              "value": null
            },
            {
              "fieldName": "nom_codicom",
              "value": null
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "id_funccom",
              "value": null
            },
            {
              "fieldName": "id_periode_operacional",
              "value": null
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "id_tactica",
              "value": null
            }
          ],
          "id": "e3b77308-196d-4857-9625-3ad018247fcc",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        }
      ],
      "outlineColor": "#E0E0E0"
    },
    {
      "backgroundColor": "#f3f3f4",
      "columns": 2,
      "columnSpacing": 12,
      "expanded": false,
      "label": "Referències del desaparegut",
      "labelColor": "#ffffff",
      "labelFontSize": 16,
      "locked": false,
      "name": "Incidències recerca",
      "rowSpacing": 12,
      "templates": [
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "7538f2f9-71ca-4d6f-ad59-42b4e7182478",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Localització ",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#212121",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "36cb095078dd097a5b76f148f967f0a8.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "descripcio",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "data_hora",
              "value": "${captureTime}"
            },
            {
              "fieldName": "incidencia",
              "value": "2"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            },
            {
              "fieldName": "nom",
              "value": null
            }
          ],
          "id": "d9abfb22-7f7c-4806-bdd3-0b47aad62cf0",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "7538f2f9-71ca-4d6f-ad59-42b4e7182478",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "UPA",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#212121",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "a430dbebed243a5cd2249fc254913936.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "descripcio",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "data_hora",
              "value": "${captureTime}"
            },
            {
              "fieldName": "incidencia",
              "value": "1"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            },
            {
              "fieldName": "nom",
              "value": null
            }
          ],
          "id": "33ba670a-3ffc-48de-addb-14525cb3e8cd",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "7538f2f9-71ca-4d6f-ad59-42b4e7182478",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Vivenda ",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#212121",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "910c9e3ffcf040b7db2ae5973c674214.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "descripcio",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "data_hora",
              "value": "${captureTime}"
            },
            {
              "fieldName": "incidencia",
              "value": "5"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            },
            {
              "fieldName": "nom",
              "value": null
            }
          ],
          "id": "c0594ac5-6ad9-4a61-9b93-baa6b4d1b7e0",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "7538f2f9-71ca-4d6f-ad59-42b4e7182478",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Possible UPA",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#212121",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "93c5198df90b4fdd58273269dd2e4295.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "descripcio",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "data_hora",
              "value": "${captureTime}"
            },
            {
              "fieldName": "incidencia",
              "value": "4"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            },
            {
              "fieldName": "nom",
              "value": null
            }
          ],
          "id": "615bc093-ae80-49f6-b519-8eb6c11860e6",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "7538f2f9-71ca-4d6f-ad59-42b4e7182478",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Possible objecte",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#212121",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "c9e72908b871427f84da10dcde8be89b.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "descripcio",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "data_hora",
              "value": "${captureTime}"
            },
            {
              "fieldName": "incidencia",
              "value": "3"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            },
            {
              "fieldName": "nom",
              "value": null
            }
          ],
          "id": "4fe23d7d-ec05-4e29-b8c2-56440974f562",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "7538f2f9-71ca-4d6f-ad59-42b4e7182478",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Altres indicis",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#212121",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "0d2057740a43e32a74aa116c5014a806.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "descripcio",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "data_hora",
              "value": "${captureTime}"
            },
            {
              "fieldName": "incidencia",
              "value": "6"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            },
            {
              "fieldName": "nom",
              "value": null
            }
          ],
          "id": "0baca700-62cc-40b8-8398-da38090dcdde",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        }
      ],
      "outlineColor": "#E0E0E0"
    },
    {
      "backgroundColor": "#f3f3f4",
      "columns": 2,
      "columnSpacing": 12,
      "expanded": false,
      "label": "Punts a revisar",
      "labelColor": "#ffffff",
      "labelFontSize": 16,
      "locked": false,
      "name": "Punts a revisar",
      "rowSpacing": 12,
      "templates": [
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Bassa",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "daa3407bb8f83b01c00bbf19be0d714c.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "tipus_punt",
              "value": "2"
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${captureTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "observacions",
              "value": null
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            }
          ],
          "id": "4144dbde-dcaf-4ffd-82d9-a405f603df7e",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Pou",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "3313595ccc3bcb15a659e1dbf066f355.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "tipus_punt",
              "value": "1"
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${captureTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            }
          ],
          "id": "5450cadf-6cd9-4a3b-ba5c-b67f40e6c02a",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Construcció",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "3dca5711cd2055c2ba0d2b778551e13c.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "tipus_punt",
              "value": "3"
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${captureTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            }
          ],
          "id": "38ce3fb6-a42e-45dc-98b8-083287144b77",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Impenetrable",
            "shape": "rounded",
            "size": "medium",
            "color": "#fff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 0,
            "shadowColor": null,
            "image": "Captura.PNG"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "tipus_punt",
              "value": "4"
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${captureTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            }
          ],
          "id": "709ab671-263a-47ac-8e70-d202a749edb4",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Barranc",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "46bdf8f6e48d218f88e61b918f66baed.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "tipus_punt",
              "value": "5"
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${captureTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            }
          ],
          "id": "c6753351-ae8c-48e4-a132-9a1bfb652371",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Avenc",
            "shape": "rounded",
            "size": "medium",
            "color": "#ffffff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#333333",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": "a83dbca510668a6260fd00a1a5fedcbd.png"
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "tipus_punt",
              "value": "6"
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${captureTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            }
          ],
          "id": "e6002b7f-59f3-464a-8a71-e0392ef37b91",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        },
        {
          "cameraInfo": {
            "mode": "manual",
            "imageSize": "large",
            "maxPhotos": 1,
            "minPhotos": 1,
            "required": true,
            "captureVideo": false
          },
          "captureInfo": {
            "continuous": false,
            "excludeNetworkLocations": false,
            "exclusivityGroup": null,
            "dataSourceId": "ecdb33d4-2f39-4a15-97be-cf01910090a2",
            "inputMode": "locationSensor",
            "type": "esriGeometryPoint",
            "usePhotoXY": true,
            "editMap": {
              "showAfterCapture": false,
              "title": null,
              "hint": null
            }
          },
          "displayInfo": {
            "label": "Altres",
            "shape": "rounded",
            "size": "large",
            "color": "#ffffff",
            "labelColor": "#333333",
            "labelFontSize": 14,
            "labelFontWeight": "Bold",
            "outlineColor": "#000000",
            "outlineWidth": 2,
            "shadowColor": null,
            "image": null
          },
          "fieldInfos": [
            {
              "fieldName": "n_actuacio",
              "value": null
            },
            {
              "fieldName": "nom",
              "value": null
            },
            {
              "fieldName": "tipus_punt",
              "value": "7"
            },
            {
              "fieldName": "estat_maniobra",
              "value": "1"
            },
            {
              "fieldName": "datahora_inici_maniobra",
              "value": "${captureTime}"
            },
            {
              "fieldName": "datahora_fi_maniobra",
              "value": null
            },
            {
              "fieldName": "grup",
              "value": "${userInput:002}"
            },
            {
              "fieldName": "nom_sector",
              "value": null
            },
            {
              "fieldName": "observacions",
              "value": "${userInput:003}"
            },
            {
              "fieldName": "camheading",
              "value": "${camHeading}"
            },
            {
              "fieldName": "campitch",
              "value": "${camPitch}"
            },
            {
              "fieldName": "camroll",
              "value": "${camRoll}"
            },
            {
              "fieldName": "hfov",
              "value": "${hfov}"
            },
            {
              "fieldName": "vfov",
              "value": "${vfov}"
            },
            {
              "fieldName": "fardist",
              "value": "50"
            },
            {
              "fieldName": "neardist",
              "value": "1"
            },
            {
              "fieldName": "avghtag",
              "value": "1.7"
            },
            {
              "fieldName": "acquisitiondate",
              "value": "${captureTime}"
            }
          ],
          "id": "6b2b033f-229d-416f-8514-c8b7567f11e8",
          "type": "button",
          "urlInfo": {
            "url": null
          }
        }
      ],
      "outlineColor": "#E0E0E0"
    }
  ],
  "tracking": {
    "enabled": false,
    "required": false,
    "lastKnownLocationsUpdateInterval": 60,
    "tracksUploadInterval": -1,
    "tracksCategory": "${projectName}",
    "lastKnownLocationsCategory": "${projectName}"
  },
  "userInputs": [
    {
      "autoCompleteMaxEntries": 5,
      "id": "001",
      "label": "NUM ACTUACIÓ",
      "fieldType": "esriFieldTypeString",
      "required": true,
      "showEvent": "onEnd",
      "domain": {
        "allowOther": false,
        "dateTime": {
          "defaultValue": null,
          "displayTime": true,
          "maxValue": null,
          "minValue": null
        },
        "dynamicList": {
          "dataSourceId": null,
          "outFields": null,
          "where": null,
          "resultRecordCount": 200
        },
        "type": "userDefined",
        "name": null,
        "inputMask": "999999999",
        "multiline": false,
        "hint": null,
        "codedValues": [],
        "range": [],
        "showScanner": false
      },
      "mode": "project"
    },
    {
      "autoCompleteMaxEntries": 5,
      "id": "002",
      "label": "GRUP DE RECERCA",
      "fieldType": "esriFieldTypeString",
      "required": true,
      "showEvent": "onEnd",
      "domain": {
        "allowOther": false,
        "dateTime": {
          "defaultValue": null,
          "displayTime": true,
          "maxValue": null,
          "minValue": null
        },
        "dynamicList": {
          "dataSourceId": null,
          "outFields": null,
          "where": null,
          "resultRecordCount": 200
        },
        "type": "userDefined",
        "name": null,
        "inputMask": null,
        "multiline": false,
        "hint": null,
        "codedValues": [],
        "range": [],
        "showScanner": false
      },
      "mode": "project"
    },
    {
      "autoCompleteMaxEntries": 5,
      "id": "003",
      "label": "OBSERVACIONS",
      "fieldType": "esriFieldTypeString",
      "required": false,
      "showEvent": "onEnd",
      "domain": {
        "allowOther": false,
        "dateTime": {
          "defaultValue": null,
          "displayTime": true,
          "maxValue": null,
          "minValue": null
        },
        "dynamicList": {
          "dataSourceId": null,
          "outFields": null,
          "where": null,
          "resultRecordCount": 200
        },
        "type": "userDefined",
        "name": null,
        "inputMask": null,
        "multiline": true,
        "hint": null,
        "codedValues": [],
        "range": [],
        "showScanner": false
      },
      "mode": "button"
    }
  ],
  "version": "1.16"
}

 

thanks @JohnathanHasthorpe ,

albert