feat(medic/cht-core#10676): store geolocation when submitting contact forms#2221
Draft
cliftonmcintosh wants to merge 2 commits into
Draft
Conversation
…orms Add reference page for the new geolocation widget that captures GPS coordinates when a contact is created or edited. Documents XForm XML and XLSForm configuration, widget behavior states, stored fields (geolocation, geolocation_log), and context question customization. Cross-reference from the contact forms reference page and the contacts feature overview. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
cliftonmcintosh
force-pushed
the
feature/10676-contact-form-geolocation-stored
branch
from
June 9, 2026 21:33
934935f to
7bddf7f
Compare
7 tasks
…implementation
Correct factual errors introduced before implementation was finalized:
remove geo_context XForm field, fix geolocation_log shape (is_home
boolean), fix skip value ("skipped"), scope geolocation field to home
captures only. Add edit mode and weak-signal failure path. Replace UI
string quotes and button labels with functional descriptions.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Documents the new geolocation widget for contact forms, introduced in medic/cht-core#10676.
New page —
building/forms/configuring/contact-geolocation.mdFull reference for configuring GPS location capture in contact forms. Covers:
geo_capture,geo_context,geolocation,geolocation_log)home/workplace/otherdefaultsUpdated —
building/forms/contact.mdNew "Capturing GPS Location" section with a link to the configuring page, following the same pattern as the existing "Uploading Binary Attachments" section.
Updated —
building/contact-management/contacts.mdNew "GPS location capture" subsection under "Creating and Editing Contacts" alongside the existing Duplicate Contact Detection entry.
AI Disclosure
Claude Code (claude-sonnet-4-6) was used to draft all documentation in this PR. The content was based on a technical draft prepared by a separate Claude Code session that worked directly in the cht-core codebase. I reviewed the output for accuracy, style guide compliance, and correct placement within the docs site structure.
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.