Expose a project variable for QField synchronization status (@qfield_sync_status)
Martin Grimaud
Currently, QField users can only check synchronization state (all changes pushed/applied, pending local edits, conflicts) through the Synchronization panel.
However, this status is not exposed to QGIS expressions, meaning we cannot use it to conditionally control forms, actions or attributes.
Feature request :
Add a project variable (for example @qfield_sync_status) accessible in QGIS expression engine inside QField.
This variable could return values such as :
"synchronized" → all changes sent and applied,
"pending_local_changes" → local edits not yet pushed,
"sync_error" → failed synchronization,
"offline" → no connection available.
Use case:
- Printing possible only after synchronization
- Symbology depending on whether or not entities are synchronized
Ralf Dietrich
It would be nice if I could see on the PC whether all MA in the field have pushed their data so that subsequent actions can be triggered, for example. So you have certainty about the current state of the project. At the moment, before deleting a project, all MA must be manually queried whether all data has already been saved via push. That is very complex