Edit issue when ${child_name} is included

Hi,

I have a small edit issue in my questionnaire for several questions where the name of the child is included.
E.g.
${child_name} is ${MONTHS} months old → “Janais 13 months”

${child_name} doesn’t have conditions indicating acute malnutrition
→ “Leondoesn’t have conditions indicating acute malnutrition”

I’m using ODK 1.30.1 on Android 11 (server KoboToolbox)

Any idea on why the space is not taking into account? Is it possible that this edit issue be related to the fact that those messages are a “note” (type)?

Many thanks in advance for your support :slight_smile:

You could do this using the concat as outlined in the post discussed previously:

Hello @fannette @Kal_Lam
I suggest to report this as an ODK bug, please. Might be new with last release? The blank should not be “eaten” here, by normalizing texts. You could test it with Collect too?

It’s working fine with KoBoToolbox and Enketo (Online validator) Preview:

I tested with some variants.
Bug Blank01.xlsx (12.6 KB)

To use “${ChildName}” is … would also be a workaround.
Even trailing and leading blanks in the name [ Leon ] will be kept with “${…}” is … But reduced to 1. Maybe the programming for text normalisation in combination with ${…} is not very consistent?.

2 Likes

Hi @wroos,

Thank you very much for your support :slight_smile:

The last option with the quotes (NT_ChildName6) seems to be the easier to implement.
It is not ideal but this method will fix the bug in the couple of lines where we have the edit issue.
Thanks again,

fannette

2 Likes