Skip to main content

Linking Layer Fields to Attribute Sets

This section explains how to connect layer fields with Attribute Sets to enable dropdowns, multiselection lists, and barcode scanning during data capture.

Overview

Once an Attribute Set is created, its fields can be linked to vector layer attributes. This controls how data is entered and validated in the attribute form.

Supported widgets:

  • Dropdown lists
  • Multiselect lists
  • Barcode / QR code scanning

Editing Layer Configuration

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

Linking a Field to an Attribute Set

  1. Select a layer field
  2. From the contex menu press Use Attribute Set - the icon containing letter A
  3. Choose:
    • Attribute Set
    • Attribute Field
warning

Field data types must match.

  1. Save changes

Dropdowns are used when a single value must be selected.

Requirements

  • Layer field type: TEXT / INTEGER / DOUBLE
  • Attribute Set field with predefined values

Behaviour

  • Only one value can be selected
  • Values are validated against the Attribute Set
  • Default values are supported

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 an Attribute Set is linked:

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

Example Configuration

Layer FieldAttribute SetAttribute FieldWidget
speciesTreesSpeciesDropdown
defectsInspectionsDefectTypesMultiselect
asset_idInventoryBarcodeBarcode Scanner