Piped text and embedded data do not appear in questions | XM Community
Skip to main content
Solved

Piped text and embedded data do not appear in questions

  • June 9, 2021
  • 6 replies
  • 2178 views

Hi, I first set an embedded data in the survey flow: Round1WT = 120.
image.png
Then in the question, i want to pipe text:
image.pngWhy this piped text does not appear in the question? And i want to use this in the javascript. It shows the value is empty. I tried parseInt, and the value is NaN. Why is that? Thanks!!

Best answer by ahmedA

It's most probably because you are previewing the block instead of the entire survey.

6 replies

cbhavsar
QPN Level 4 ●●●●
Forum|alt.badge.img+29
  • QPN Level 4 ●●●●
  • June 9, 2021

Hi,
I believe this is happening as you are setting the embedded data variable after the block.
Please ensure to move Set embedded data block at the very top of the survey.
I hope this solves your difficulties.
All the best with your project.


Forum|alt.badge.img+15
  • QPN Level 4 ●●●●
  • June 10, 2021

Hi,

Please check for 2 things.

  1. Embedded data value is set before Question block is shown, so that embedded field stores 120 before getting displayed in Question text. For such fixed values, setting embedded field at the very top of survey flow should help.

  2. Check for the formatting in HTML view. I see that question text is bolded, so just make sure HTML tags created for formatting is not breaking the piping tags for embedded data

Hope it helps.


  • Author
  • June 12, 2021

https://www.qualtrics.com/community/discussion/comment/38208#Comment_38208Thanks but i set the embedded data at the beginning of the survey flow, before all blocks.


  • Author
  • June 12, 2021

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • June 12, 2021

It's most probably because you are previewing the block instead of the entire survey.


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • June 12, 2021

It's most probably because you are previewing the block instead of the entire survey.