getodk / getodk/docs

Add example of clearing a target question on another question's value change

Open
#1,287 0 comments 0 reactions 0 assignees View on GitHub
future release
Dominant language
Python
Stars
58
Forks
160
Avg merge
5d 11h
Merged PRs (30d)
12

Description

This will first require updates to:
- [x] JavaRosa (3.1, Feb 2021)
- [x] Collect (1.30, Feb 2021)
- [ ] Validate
- [ ] pyxform

```
Another option for the scenario above is to clear out the value for ``malaria_age`` when ``current_age`` changes. Making ``malaria_age`` a required question will force the enumerator to update ``malaria_age`` if ``current_age`` is corrected.

.. csv-table:: survey
:header: type, name, label, required, calculation, trigger

text, name, Child's name,
integer, current_age, Child's age,
select_one gndr, gender, Gender,
integer, malaria_age, Age at malaria diagnosis, true(), , ${current_age}
```

Contributor guide

Open the contributing guide

Research direction

Start with the issue's proposed CSV-table example and verify whether Validate and pyxform support the trigger behavior, since those updates remain unchecked. Locate the relevant Sphinx documentation page, add the example once both dependencies support it, and confirm the rendered table accurately explains clearing malaria_age when current_age changes.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.