# How to record Z value automatically

**URL:** <https://community.qfield.org/t/how-to-record-z-value-automatically/730>\
**Category:** Ask the Community\
**Tags:** gh-import\
**Created:** [14 May 2025 02:52 UTC](https://community.qfield.org/t/how-to-record-z-value-automatically/730 "2025-05-14T02:52:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/7d3726da0ef5099a1e135505c03d2f125d527aae.png) [@system](https://community.qfield.org/u/system)\
**Post date:** [14 May 2025 02:52 UTC](https://community.qfield.org/t/how-to-record-z-value-automatically/730/1 "2025-05-14T02:52:46Z")

</div>

I was wondering how to record Z value when I’m mapping out points. I use Qfield and Emlid reach. An answer on GIS stack exchange says to put Z($geometry). I was wondering, does just $Z work as well? What does the Z($geometry) do differently? And, is it possible to use a GNSS variable for Z value. I would rather want the field to be empty if there is a sudden loss of connection to base.

And, Qfield does not seem to correct the altitude height. Any ideas?

* * *

_Imported from [GitHub discussion](https://github.com/opengisch/qfield/discussions/3580) by @xyzadh on 2022-11-06T19:36:42Z_

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex018/uploads/qfield/original/1X/7d3726da0ef5099a1e135505c03d2f125d527aae.png) [@system](https://community.qfield.org/u/system)\
**Post date:** [14 May 2025 02:52 UTC](https://community.qfield.org/t/how-to-record-z-value-automatically/730/2 "2025-05-14T02:52:48Z")

</div>

Hi

I noticed, you have to create point later with Z field. When you add geoid file \*.tiff to qfield then you can save the height value with either $z or Z($geometry).

* * *

_Imported from [GitHub comment](https://github.com/opengisch/QField/discussions/3580#discussioncomment-4987869) by @kstulka on 2023-02-15T20:50:45Z_
