Changing text in a question based on Embedded data field - not solved by display logic | XM Community
Skip to main content
Solved

Changing text in a question based on Embedded data field - not solved by display logic

  • April 15, 2022
  • 2 replies
  • 465 views

KBrady
Level 2 ●●
Forum|alt.badge.img+11

I have a form field question in which I want to change only a portion of the descriptive text based on an embedded data field i.e. SME=MX Vs SME=AR

Change from “Por favor, proporcione nueva información a modificar” to “Por favor, proporcione detalles de su solicitud”
I understand I need to include a class for each but unsure of the JS code required to be entered in both the question htlm and or the look & feel style sheet.
Any thoughts?
Thank you!

Best answer by KBrady

Thanks Tom! Works perfectly!

2 replies

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • April 15, 2022

Hi there, you can include variable text based off of an Embedded Data field by using Branch elements at the top of your survey flow that look for specific Embedded Data field values. Nested beneath the Branch elements, you can set the value for this variable text and display it to the respondent using Piped Text, like in the below:
VariableTextEmbedded.png


KBrady
Level 2 ●●
Forum|alt.badge.img+11
  • Author
  • Level 2 ●●
  • Answer
  • April 20, 2022

Thanks Tom! Works perfectly!