Pipe in Loop & Merge field 1 and 2 from the same row | XM Community
Skip to main content

Hello, 

I am trying to pipe in two data fields from a loop and merge list. Importantly, the fields need to be from the same row. 

So my list looks like this: 

Field1 (Ice Cream Flavors)                          Field2 (Cities)

Vanilla                                                              New York

Chocolate                                                        Seattle

Strawberry                                                       Denver

 

First, people should answer a question about a randomly selected ice cream flavor (this is easy by using loop & merge and then randomly selecting to display 1 loop). So far so good. 

Next, they should answer a question about the respective city that MATCHES the row from field1. So if field 1 has randomly selected "Strawberry” then the field 2 which should be displayed is “Denver”. 

 

I appreciate any help! 

Thank you. 

@anika-AS Set your loop & merge like this
 

Pip-text this in to your Question 1: ${lm://Field/1}
and this in your Question 2: ${lm://Field/2}
This should give you what you want
Let me know if it helps


Thank you! To all who have the same problem: It's essential that the field 1 and field 2 questions are part of the same question block. If they are in separate blocks the randomization is not matched. Thanks for the help!


@anika-AS Yeah sure. Happy to help 👍


Leave a Reply