Your set-up in the original post is correct. That is how you collect z values. Assuming your device is capable of collecting a z value (e.g., a cell phone) and you are making no manual changes to the geopoint, then you should be getting z values.
Can you please elaborate on how you are collecting those z values? You made two statements originally: When I tried to capture using my mobile phone, I got the Altitude (z value) but when I click OK after selecting a location on the map, it didn't include the z value. I am confused about the "click OK" part. Where are you clicking OK?
Based on your description, I assume you are talking about the checkmark on this screen:
If that is the case, then you may be modifying the geopoint, which would result in the z value not being available.
Also, you have duplication of effort with your fields. Is there a specific reason for the three decimal fields? They just seem to be linked to the calculates. I'd recommend:
- Remove the three decimal fields
- Make the three hidden fields into text
- If you want any of the calculates to not be visible, give them the hidden appearance (it works better than the hidden type)
Then you just pull data from the source (i.e., ${loc_elevation}).