inserting loop and merge options into question text | XM Community
Skip to main content
Solved

inserting loop and merge options into question text

  • September 10, 2019
  • 3 replies
  • 13 views

LibertyW
Level 3 ●●●
Forum|alt.badge.img+5
Looking for a better way to insert a list into question text. Currently doing the embedded and branch route but if there was a way to use a loop and merge, seems like it would be easier since there is display logic involved.

Best answer by JenCX

Ah, okay. I think you may have mentioned this elsewhere, but for the benefit of others who may happen upon this thread, you can accomplish this using embedded data and branches. You can use the branches to set different values for a single embedded data field based on your logic, then use the embedded data as piped text in the question. This allows you to use a single question that asks different things based on your piped text. I've done this for personal possessives and it works quite well!

3 replies

JenCX
Level 5 ●●●●●
Forum|alt.badge.img+11
  • Level 5 ●●●●●
  • September 11, 2019
Are you looking to show different values in a single question based on logic? Or are you trying to ask the same question multiple times with different text?

LibertyW
Level 3 ●●●
Forum|alt.badge.img+5
  • Author
  • Level 3 ●●●
  • September 11, 2019
> @JenCX said: > Are you looking to show different values in a single question based on logic? Or are you trying to ask the same question multiple times with different text? Option 1. Showing multiple selections from a previous question in the question text. For option 2, the loop and merge should be sufficient in it's native form.

JenCX
Level 5 ●●●●●
Forum|alt.badge.img+11
  • Level 5 ●●●●●
  • Answer
  • September 11, 2019
Ah, okay. I think you may have mentioned this elsewhere, but for the benefit of others who may happen upon this thread, you can accomplish this using embedded data and branches. You can use the branches to set different values for a single embedded data field based on your logic, then use the embedded data as piped text in the question. This allows you to use a single question that asks different things based on your piped text. I've done this for personal possessives and it works quite well!