Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Enable when is not working correctly with Initial values #464

@suriyan3

Description

@suriyan3

Describe the bug
Enable when is not working correctly with Initial values. Add a choice element which will have initial value. This choice element will be hidden and this choice elements initial value is added to the questionnaire response based on another choice elements value.

To Reproduce
Steps to reproduce the behavior:

  1. Upload the questionnaire
  2. Click on Preview
  3. click on questionnaire response

Expected behavior
When you click on draft the item with link id "malaria-test-code-coding" should be added to questionnaire response. when you click on active the item with link id "malaria-test-code-coding" should not be added to questionnaire response.

Screenshots
image
image
When no value is selected this is the questionnaire response
image
when Active is selected
image
when Draft is selected
image

Additional context
Add any other context about the problem here.
Questionnaire.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions