Closed danielruss closed 2 years ago
@guinevere83 @danielruss Daniel - this test module does not work in the renderer.
@huip-ims Thank you for the update. I see the problem. My module does not exercise the bug. But this one does. The Id is somehow getting "required" stuck in it. Let me track down who is writing it and get back to you.
[S] Test module for issue 410
[SRVBLU_COV2_V1R0?] How many times have you had COVID-19?
|__|__| min=1| Times
<loop max=25>
[SRVBLU_COV3_V1R0!,displayif=greaterThanOrEqual(SRVBLU_COV2_V1R0,#loop)] When was the <b>{##}</b> time that you had COVID-19? If you are not sure, please make your best guess.
Month |__|__|id=SRVBLU_COV3_MONTH_V1R0 required min=1 max=12|
Year |__|__|__|__|id=SRVBLU_COV3_YEAR_V1R0 required min=2020 max=#currentYear|
// Month and Year drop down lists are not currently supported
[SRVBLU_COV22_V1R0?] How long did it take you to recover to your usual state of health from the date you first realized you had COVID-19?
Months |__|__|id=SRVBLU_COV22_MONTHS_V1R0 min=0 max=(#currentYear - _value("SRVBLU_COV3_YEAR_V1R0_1"))*12 + (#currentMonth - _value("SRVBLU_COV3_MONTH_V1R0_1"))|
Days |__|__|__|id=SRVBLU_COV22_DAYS_V1R0 min=1 max=365|
</loop>
[END] that the end
@huip-ims There are two problems related to changes that we made.
@danielruss Daniel - Question SRVBLU_COV22_V1R0 is asked after the loop has finished. Wouldn't both SRVBLU_COV3_MONTH_V1R0_1 & SRVBLU_COV3_YEAR_V1R0_1 exist then. COV22 worked before when we tested the code back in early May.
@huip-ims Sorry, you are correct. The question is out of the loop, so the name wont get mangled and using SRVBLU_COV3_YEAR_V1R0_1 is valid. However, still change the code to use required=true
please let me know if that fixes your issue.
@huip-ims had an issue with COVID question in loop with 2 two text boxes, which was the subject of a prior closed issue #393.
I created a test module that contains the question exactly as in the module.
This module works for me. @huip-ims does this work for you?