Closed lognaturel closed 3 years ago
The same almost certainly also applies to required_message
.
I think the only approach we could take is detect whether there's a ${} reference in a constraint_message and if so generate itext for it.
That seems like the only solution indeed.
Software and hardware versions
pyxform v1.x.x, Python v1.2.0
Problem description
If a form only uses one language and has a
constraint_message
with a ${} reference, nooutput
is generated. This is a side effect of https://github.com/XLSForm/pyxform/issues/285.Steps to reproduce the problem
jr:constraintMsg="You chose /data/Q1 in Q1 but now it's different!"
. This means the/data/Q1
reference is not evaluated by clients.Expected behavior
/data/Q1
gets evaluated by clients.Other information
A form design workaround is to set a language for the
constraint_message
column to force the generation of anitext
block. I think the only approach we could take is detect whether there's a${}
reference in aconstraint_message
and if so generateitext
for it.