Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed translation of required Form questions (#73)
# Fixed translation of required Form questions ## ♻️ Current situation & Problem As reported in #71 the requiredness of groups is not correctly mapped to ResearchKit Forms. There are two mistakes here: 1. The `isOptional` property of the individual `ORKFormItem` is invested (this controls if the "Continue" button is rendered enabled or disabled) 2. The `isOptional` property of the `ORKFormStep` is never set (controls the appearance of the "Skip" button). ## ⚙️ Release Notes * Fixed an issue where you could skip required questions in a when rendered as a Form. ## 📚 Documentation Added inline docs to explain the different semantics of the two `isOptional` properties. ## ✅ Testing Added UI tests to verify this behavior. Our existing `Form Example` FHIR questionnaire had a Form with 3 question out of which 2 are required. We ensure that the Skip button doesn't show up and the Next Button is only enabled once all the required question are answered. ### Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
- Loading branch information