Conditional default not working inside a repeat group?

I'm using an if() statement in the calculation column of a question to conditionally provide a default answer. It works outside of a repeat group but not inside.

See this simplified example: conditional_default.xlsx (10.1 KB)

The docs I looked at:

A bug? Expected behavior? I'm doing something wrong?

Hi @danbjoseph,

It works if source ${ask} and target ${my_text} are in the same group inside the repeat. See the updated Form below.

The issue seems to be related to the couple of open javarosa bugs: JV#627 and JV#360

conditional_default.xlsx (10.1 KB)

1 Like