Help appreciated.
Problem statement: Using a piped reference to a {lm://Field/2} variable containing a piped reference to embedded data {e://Field/1} returns the correct value, but is not recognized in display logic to control whether question is shown.
Embedded data at runtime from cvs input:
aa=1
bb=0
cc=1
Loop matrix data:
Fld1 Fld2
aa ${e://Field/aa}
bb ${e://Field/bb}
cc ${e://Field/cc}
The embedded data holds a flag for whether the question should be shown for the current loop. If field 2 =1, do not show; if field 2 <> 1 then show the question. The correct values, 1 or 0 are being correctly loaded into {$lm://Field/2} per text displayed during the current loop, but the question is ALWAYS shown. Thus, it seems as though the display logic will not recognize ${lm://Field/2} value for control. Logic is display if <>1.
I hope this explanation is clear enough to get some guidance. Thank you in advance for reading.
Jodene
Solved
Piped text {lm://Field/x} as part of with display logic inside loop
Best answer by TomG
Use JS to copy the loop & merge field to an embedded data field, then use the embedded data field in display logic. You may need to add a text/graphic question to the beginning of the loop then use JS to click Next.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.