helsenorge / structor

FHIR Questionnaire Form Builder
https://static.helsenorge.no/static_skjemabygger/
MIT License
88 stars 34 forks source link

Enable when is not working correctly with Initial values #464

Open suriyan3 opened 1 year ago

suriyan3 commented 1 year ago

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

KimHoelHalvorsen commented 1 year ago

Thank you for your message, This is an issue we are aware of, but has not yet been fixed. It is on the list to do.