The original version of this document is located 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
📱 Fieldwork
To configure a device-specific variable, open Settings > 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
Expression Variables
The original version of this document is located at https://docs.qfield.org/reference/expression_variables Expression Variables in QField QField supports various expression variables that can be used in forms, expressions, and field defaults. These ...
Positioning (GNSS)
The original version of this document is located 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 to ...
Attribute form
The original version of this document is located 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 optimized ...
Secrets
The original version of this document is located at https://docs.qfield.org/reference/qfieldcloud/secrets Secrets Secrets are Project settings that are securely stored in an encrypted way. Jobs will automatically have access to project’s secrets. ...
Measuring tool
The original version of this document is located 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 in ...