Skip to main content

Linking Layer Fields

This section explains how to connect layer fields with predefined value sources to enable dropdowns, multiselection lists, barcode scanning, and value relations during data capture.

Overview

A layer field can look up its values from one of two sources:

  • Attribute Set - a curated, fixed list of values you define once and reuse across layers. Supports dropdowns, multiselect lists, and barcode scanning.
  • Another layer (Value Relation) - the distinct values currently entered in a column of another layer in the same GeoPackage. The dropdown stays in step with your data as you collect it. This is ideal for keeping a shared identifier consistent across layers - for example, picking an existing FarmerID (entered as free text on a GGBL_Farmers layer) when recording farms, plots, or visits on other layers.

In both cases the field becomes a controlled dropdown: only listed values can be saved, which keeps your data consistent. Field data types must match - a numeric field can only be linked to a numeric source, and a text field to a text source; incompatible sources are not offered.


Editing layer configuration

  1. Open Main Menu → Manage layers
  2. Select a layer created earlier and press Edit - the pencil icon on the context menu.

Linking a field

  1. Select a layer field
  2. From the context menu press Link - the chain-link icon
  3. Under Look up values from, choose Attribute set or Another layer
  4. Pick the source (see below)
  5. Press OK, then save changes

Looking up values from an Attribute Set

  1. Set Look up values from to Attribute set
  2. Choose:
    • Attribute Set
    • Attribute Field

The dropdown is filled with the values defined in that Attribute Set field.

Looking up values from another layer (Value Relation)

Mapit GIS Professional - Link field dialog set to look up values from another layer
  1. Set Look up values from to Another layer
  2. Select layer - any other feature layer in the same GeoPackage
  3. Select field - only columns whose data type matches the field are listed; the selected column's data type is shown above the picker
  4. Press OK, then save changes
note

If the source layer or column is later deleted or renamed, Mapit silently clears the dangling link the next time you edit the layer (Manage layers → Edit) or add/edit a record. The field reverts to free text or numeric entry; no manual cleanup is required.


Value Relation behaviour

  • The dropdown lists the distinct, non-empty values currently present in the source column, refreshed each time you open the attribute form
  • Only listed values can be saved (strict pick-list)
  • Values are read live, so new entries on the source layer appear automatically
  • The source layer must live in the same GeoPackage
info

A Value Relation reads values directly from the other layer - there is no Attribute Set to maintain. Just keep collecting data on the source layer and the dropdown stays current.


Searching long dropdowns

When a single-select dropdown has more than a handful of values - common for Value Relations built from live data - the field opens a searchable picker instead of a plain list.

  • Tap the field to open the picker
  • Start typing to filter; matching is prefix-first (values that start with what you type), falling back to a contains match when nothing starts with it
  • Tap a value to select it

This applies to both Attribute Set and Value Relation dropdowns.


Dropdowns are used when a single value must be selected.

Requirements

  • Layer field type: TEXT / INTEGER / DOUBLE
  • A source of values: an Attribute Set field with predefined values, or a matching column on another layer (Value Relation)

Behaviour

  • Only one value can be selected
  • Values are validated against the linked source
  • Default values are supported (Attribute Set links)
  • Long value lists open a searchable picker

Multiselection Lists

Multiselection allows choosing multiple values from the same Attribute Set field.

Requirements

  • Layer field type: TEXT
  • Attribute Set field type: MULTISELECT

Storage Format

Selected values are stored as:

value1;value2;value3

Barcode and QR Code Fields

Barcode fields enable camera-based scanning.

Requirements

  • Layer field type: TEXT
  • Attribute Set field type: BARCODE

Behaviour

  • On a field data entry automatically opens camera scanner
  • Manual entry is still possible

Validation Rules

When a field is linked:

  • Only allowed values can be saved
  • Empty values cannot be stored except the BARCODE type.

Example Configuration

Layer FieldSourceSource Field / ColumnWidget
speciesAttribute Set: TreesSpeciesDropdown
defectsAttribute Set: InspectionsDefectTypesMultiselect
asset_idAttribute Set: InventoryBarcodeBarcode Scanner
FarmerIDLayer: GGBL_FarmersFarmerIDDropdown (Value Relation)