Email Trigger | XM Community
Skip to main content
Solved

Email Trigger

  • April 19, 2023
  • 8 replies
  • 97 views

Forum|alt.badge.img+2

2 Questions:

 

  1. How do I create a line break in my email trigger embedded data without understanding Javascript? I have programmed embedded data that only populates if a response is present. So the way I have this laid our I get lots of empty spaces. If I were to be able to insert a new line prompt within the brackets that would be great.

PRIOR TESTING AND IMAGING: ${e://Field/No%20Prior%20Testing}${e://Field/Urinalysis%20and%20Culture}

${e://Field/Urine%20cytology}

${e://Field/Urine%20Ureaplasma%20%2F%20Mycoplasma}

${e://Field/STI%20Testing}

${e://Field/Pregnancy%20test}

${e://Field/Blood%20tests}

${e://Field/Stool%20Test}

${e://Field/Voiding%20Diary}

${e://Field/PVR}

${e://Field/CT%20Scan}

${e://Field/CT%20scan%20spine}

${e://Field/CT%20scan%20head}

${e://Field/CT%20scan%20abdomen}

${e://Field/CT%20scan%20pelvis}

${e://Field/Ultrasound

}${e://Field/Ultrasound%20abdomen}

${e://Field/Ultrasound%20kidneys}

${e://Field/Ultrasound%20pelvis}

${e://Field/Ultrasound%20vagina}

 

  1. I’d like the patient to be able to see and print the email triggers that I’ve programmed when they complete the survey. How does that work?

Thank you so much!

Elise

Best answer by ArunDubey

use <br> tag as follows

${e://Field/No%20Prior%20Testing}${e://Field/Urinalysis%20and%20Culture}<br>

${e://Field/Urine%20cytology}<br>

${e://Field/Urine%20Ureaplasma%20%2F%20Mycoplasma}<br>

${e://Field/STI%20Testing}<br>

${e://Field/Pregnancy%20test}<br>

${e://Field/Blood%20tests}<br>

${e://Field/Stool%20Test}<br>

${e://Field/Voiding%20Diary}<br>

${e://Field/PVR}<br>

${e://Field/CT%20Scan}<br>

${e://Field/CT%20scan%20spine}<br>

${e://Field/CT%20scan%20head}<br>

${e://Field/CT%20scan%20abdomen}<br>

${e://Field/CT%20scan%20pelvis}<br>

${e://Field/Ultrasound}<br>

}${e://Field/Ultrasound%20abdomen}<br>

${e://Field/Ultrasound%20kidneys}<br>

${e://Field/Ultrasound%20pelvis}<br>

${e://Field/Ultrasound%20vagina}

8 replies

qualtrics_nerd
Level 5 ●●●●●
Forum|alt.badge.img+19
  • Level 5 ●●●●●
  • April 19, 2023

Hi @EliseDe ,

If I understand your question correctly , you want to add line break after each piped data;
 

Click on highlighted HTML button,
 

Add this highlighted tag <br/>  after   each statement you want to have  line break.
Hope this resolves your query😊!!
 


CxEx
Level 5 ●●●●●
Forum|alt.badge.img+13
  • Level 5 ●●●●●
  • April 23, 2023

To control empty rows, you have to make sure only embedded fields having data should be piped instead of all fields. 


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • May 15, 2023

Thank you both so much. I have the line break there (it shows up automatically when you hit return in the email trigger programming) and I also have piping of only fields with data. 

But the output looks like this the following, with empty rows remaining where piped text did not happen. What I am hoping to learn is how to put the break in WITHIN the embedded data, so the break only happens if the field has data. 

My email is dee@amc.edu if someone might be able to screen share and help me. 
Thanks!


ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • Answer
  • May 15, 2023

use <br> tag as follows

${e://Field/No%20Prior%20Testing}${e://Field/Urinalysis%20and%20Culture}<br>

${e://Field/Urine%20cytology}<br>

${e://Field/Urine%20Ureaplasma%20%2F%20Mycoplasma}<br>

${e://Field/STI%20Testing}<br>

${e://Field/Pregnancy%20test}<br>

${e://Field/Blood%20tests}<br>

${e://Field/Stool%20Test}<br>

${e://Field/Voiding%20Diary}<br>

${e://Field/PVR}<br>

${e://Field/CT%20Scan}<br>

${e://Field/CT%20scan%20spine}<br>

${e://Field/CT%20scan%20head}<br>

${e://Field/CT%20scan%20abdomen}<br>

${e://Field/CT%20scan%20pelvis}<br>

${e://Field/Ultrasound}<br>

}${e://Field/Ultrasound%20abdomen}<br>

${e://Field/Ultrasound%20kidneys}<br>

${e://Field/Ultrasound%20pelvis}<br>

${e://Field/Ultrasound%20vagina}


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • May 15, 2023

I am afraid I’ve tried that without success. Would love live help if anyone is able to email me at dee@amc.edu to set up a time. Gratefully, Elise De


ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • May 15, 2023

@EliseDejust dropped an email to you.


ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • May 17, 2023

Hi Dr @EliseDe , I hope it is resolved now. Kindly update here. Thanks!!​​​


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • May 17, 2023

Dear Arun and Qualtrics Community, 

Thank you for teaching me this solution!

I put <br /> into my embedded data, which I set to render only if fields were completed (e.g. text box not empty).

It worked!!!!!!!!!!!!!!

Elise De