Live default value

Live default value

The original version of this document is located at https://docs.qfield.org/how-to/advanced-how-tos/live-default-value

Live default value

QField is supporting the “live” updating of default attribute value when editing features.
This means, when changing one value in an attribute another automatically adjusts.
Examples for this could be species names that are both recorded with the original species name and the common name.

Workflow

Configuration

🖥️ Desktop preparation

In this example, the image will automatically update when a different plant_species is chosen.

  1. Direct to the layer properties, where you want to set the updating value field.
  2. Go to the ‘photos’ field and add the following expression into the default value.
  3. Toggle the apply default upon update.

    live default value image

  4. Go to the plant_species field where your value relation is set as a widget type.

  5. Add the following expression as shown below into the default value.

    live default value relation

  6. Press Ok and save.

Example

In the video below there is an example of “live” default value updates when editing features on QField.

Live_Default_Value

    • Related Articles

    • Processing Algorithms

      The original version of this document is located at https://docs.qfield.org/how-to/data-collection/processing Processing Algorithms QField offers access to a number of processing algorithms to modify digitized features and their geometries. Showing ...
    • External routing

      The original version of this document is located at https://docs.qfield.org/how-to/navigation-and-positioning/external-routing External routing It can come in handy to calculate an itinerary to one of your features in the field. By an easy ...
    • Geologic Mapping

      The original version of this document is located at https://docs.qfield.org/success-stories/geologic-mapping Geologic Mapping with QField By Rohanna Gibson, Structural Geologist, Terrane Geoscience Goal To collect new data on bedrock geology and view ...
    • Positioning (GNSS)

      The original version of this document is located at https://docs.qfield.org/how-to/navigation-and-positioning/gnss Positioning (GNSS) QField can make use of the internal GNSS (Global Navigation Satellite System, like GPS, GLONASS, Galileo or Beidou). ...
    • Simple attribute form configuration

      The original version of this document is located at https://docs.qfield.org/how-to/project-setup/attributes-form Attribute form Before you go into the field, you will have to configure your forms - the fields that the user will see in the fields. You ...