As reported in #71 the requiredness of groups is not correctly mapped to ResearchKit Forms. There are two mistakes here:
The isOptional property of the individual ORKFormItem is invested (this controls if the "Continue" button is rendered enabled or disabled)
The isOptional property of the ORKFormStep is never set (controls the appearance of the "Skip" button).
:gear: Release Notes
Fixed an issue where you could skip required questions in a when rendered as a Form.
:books: Documentation
Added inline docs to explain the different semantics of the two isOptional properties.
:white_check_mark: 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.
Fixed translation of required Form questions
:recycle: Current situation & Problem
As reported in #71 the requiredness of groups is not correctly mapped to ResearchKit Forms. There are two mistakes here:
isOptional
property of the individualORKFormItem
is invested (this controls if the "Continue" button is rendered enabled or disabled)isOptional
property of theORKFormStep
is never set (controls the appearance of the "Skip" button).:gear: Release Notes
:books: Documentation
Added inline docs to explain the different semantics of the two
isOptional
properties.:white_check_mark: 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 and Contributing Guidelines: