episphere / quest

experimenting with the idea of a questionnaire markup
https://episphere.github.io/quest/
2 stars 11 forks source link

Issue with displayif or equals/doesNotEqual - Module 4 #365

Closed joshid-ims closed 2 years ago

joshid-ims commented 2 years ago

For the code below, displayifs in the question itself work but the same displayifs in the response option 5 do not work.

[DRINKSWTR2F?,displayif=equals(DRINKSWTR1,55)] In a usual week, about how often do you use tap water from your home to make |displayif=doesNotEqual(DRINKSWTR1_OTH,"")|{$DRINKSWTR1_OTH}||displayif=equals(DRINKSWTR1_OTH,"")|other beverages|? (0) times/day |||id=DRINKSWTR2F_NUM min=0 max=999| (1) 5-6 times/week (2) 3-4 times/week (3) 1-2 times/week (4) Less than once a week (5) I drink tap water in |displayif=doesNotEqual(DRINKSWTR1_OTH,"")|{$DRINKSWTR1_OTH}||displayif=equals(DRINKSWTR1_OTH,"")|other beverages| but don’t know how often

image

danielruss commented 2 years ago

@joshid-ims This is was quest coding coding error. We handle displayif's is questions, response and conditional text, but NOT condition text in a response. I just pushed a fix. If it works, please close.

joshid-ims commented 2 years ago

Working now.