Global variables

Global variables

The original version of this document is located at at https://docs.qfield.org/how-to/variables

Global variables

Variables are used in QField and QGIS to dynamically set values based on the current project file, the layer or the system. They can be used for styling, setting default values for fields and much more.

Configuration

:material-tablet: Fieldwork

To configure a device-specific variable, open Settings > Variables.

!Configuration of two new global variables in addition to the
pre-defined system
variables.

On the variable page, you can see predefined variables. To add new variables, click on the empty cell at the bottom and write the content.

    • Related Articles

    • Positioning (GNSS)

      The original version of this document is located at at https://docs.qfield.org/how-to/gnss Positioning (GNSS) QField can make use of the internal GNSS (Global Navigation Satellite System, like GPS, GLONASS, Galileo or Beidou). QField can also connect ...
    • The official QFieldCloud SDK and CLI

      The original version of this document is located at at https://docs.qfield.org/reference/qfieldcloud/sdk Install pip install qfieldcloud-sdk Module usage ```python import requests from qfieldcloud_sdk import sdk client = sdk.Client( ...
    • Attribute form

      The original version of this document is located at at https://docs.qfield.org/how-to/attributes-form Attribute form QField creates forms similar to, but not equal to QGIS. The field widgets from QGIS are supported on a best effort basis and ...
    • Secrets

      The original version of this document is located at at https://docs.qfield.org/reference/qfieldcloud/secrets Secrets Secrets are settings that are securely stored in an encrypted way. Project's jobs will automatically have access to their secrets. ...
    • Measuring tool

      The original version of this document is located at at https://docs.qfield.org/how-to/measuring-tool Measuring tool QField offers measurement functionalities out of the box, you have the flexibility to change the units for measuring distance and area ...