A bug that changes field names in existing <output> code within label fields

Hi folks – has anyone encountered the following bug:

– You are editing a form using the form builder.

– In that form, you have a label field that has several OUTPUT tags in it
to output the contents of certain fields … for example

– You later make a change to that app. It could be that, over in your
field list, you changed or deleted a hidden-value field (the kind that
might be referenced in that above mentioned label field) … or perhaps, in
that same label field, you changed one of the OUTPUT tags to show a
different field.

– Then, for some reason, the system automatically reaches into one of the
OTHER output tags in your label field, and changes the name of the variable
that it is referencing, replacing it with a different variable (perhaps
it’s the one that you edited in the above step.)

This bug has happened to me probably 7-10 times. I imagine it has to do
with the feature where if you modify one of your field names, it
automatically scans through the code to replace the name in the references
with the newly corrected one. But in this case, it’s changing OUTPUT
references that it shouldn’t be changing.

Anyone see that bug happening? (apologies if this is discussed in a
different thread)

Eric

One more note: In at least one of these times, it did not replace the field
reference with a full title of another field… in fact it chose just a
fragment of that other field’s title, to swap in place of the poor innocent
line that was just sitting there doing its thing…

I can give more illustration because it just happened right now. In this
case:

(1) I had a line in my form’s label field that said

(2) then I went over an created a totally new field, of type Hidden Value,
with the title of: loadall-referral-types

(3) the next time I went to that label field, the system had modified my
above output line to be a mashup of the two… the output line turned into:

I can make guesses as to what the computer might have gotten confused
about… the similarity of the beginnings of the two names, etc… but any
chance this behavior can be stopped? Thanks folks! --Eric

Hey Eric,

This certainly sounds like a bug. Could you please report an issue for it
on HQ?

If you have consistent reproduction steps that will be very helpful in
getting our developers setup to fix it as quickly as possible.

best,
Cory

··· On Wed, Nov 19, 2014 at 5:14 AM, Eric Stephan wrote:

I can give more illustration because it just happened right now. In this
case:

(1) I had a line in my form’s label field that said

(2) then I went over an created a totally new field, of type Hidden Value,
with the title of: loadall-referral-types

(3) the next time I went to that label field, the system had modified my
above output line to be a mashup of the two… the output line turned into:

I can make guesses as to what the computer might have gotten confused
about… the similarity of the beginnings of the two names, etc… but any
chance this behavior can be stopped? Thanks folks! --Eric


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks much. I submitted it just now. --Eric