FieldTask 5.5 Release

New features

Map Previews

GeoTrace and GeoShape answers now show as a small map instead of a list of coordinates. Screen readers will read out the points. This will work offline, at least in part, as the shape is always drawn, along with any offline (MBTiles) reference layer. However if you don’t have offline tiles then the background map needs a network connection.

If you are building your own app then, to use Google maps, the preview background needs the Google Map Tiles API enabled on the Google API key. Without it the shape is drawn on a blank background.

The results of a polygon question

GeoSpatial Reference Data

A parameter called “reference-geometry” has been added. This can point to a list name that has geometries that should be shown on the map as reference data.

Three reference geometries shown when answering a geopoint question

Range Tick Labels

Labels for range type questions can now be specified using a parameter called labelset. The value of the parameter is the name of a choice list that contains the labels for the range type question.

Range question with labels on the ticks

Background GeoPoints

There is a an existing feature that allows you to record the location of the start of a survey in the background. This is a question of type: start-geopoint. However now you can also record the background location at which any question is answered. This uses a question of type “backgroun-geopoint” and you specify the question that triggers it as a trigger. For example to record the location at which the “name” question is answered specify ${name} as the trigger for the background-geopoint question.

Changes to Date Calculations

  • Date arithmetic uses calendar days and keeps the result as a date, e.g. today() + 1 is tomorrow’s date. This new feature applies if you use a calculation to set a value on date type question.
  • Date-time arithmetic is supported and keeps the time of day.
  • Time values are wall-clock times and no longer shift with timezone or daylight saving.
  • number() of a time gives the fraction of the day, like decimal-time().
  • Explicit timezone offsets in date-times are preserved.

Other

  • Task map: fixed a crash when a location update arrived after switching
    the basemap to Google.
  • Select questions: fixed images, audio and video buttons, and “missing
    image” messages from one choice appearing on another while scrolling.
  • Tapping a choice image no longer opens another choice’s large image.
  • Fixed an attached CSV being hidden by an entity list with the same name.
  • Fixed the “last saved” values not carrying over between form versions.
  • Fixed map previews crashing on raster basemaps.
  • If attaching a photo, file or offline map layer from another app fails partway, the incomplete file is removed instead of being kept.
  • Cancelling a form upload now stops it mid-transfer. Forms already sent before the cancel are kept as sent.
  • Geopoint question redesigned, with altitude and accuracy shown to a sensible precision.
  • Questions, where the answer will be shown as a summary such as geopoints and which do not yet have an answer, will not be shown in the area under the question button.
  • New-repeat actions also run for repeats nested inside a new repeat.
  • Required-question messages can be plain text or include output values from other questions.

Technical Changes

  • New map engine: MapLibre replaces Mapbox for the Mapbox, OpenStreetMap, USGS and Carto basemaps. Existing basemap settings are migrated.
  • Android target SDK 36. Unit tests need Java 21 or later (Android Studio’s bundled JDK works).
  • Gradle dependency locking added (gradle.lockfile per module). Regenerate with: ./gradlew resolveAndLockAll –write-locks
  • Carto basemap key can be set in secrets.properties.
  • Custom JavaRosa upgraded to 7.0.0-smap (upstream 7.0.0 + smap changes).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.