How do I display a custom coded chart within a survey based on answer inputs? | XM Community
Skip to main content
Solved

How do I display a custom coded chart within a survey based on answer inputs?

  • December 3, 2018
  • 2 replies
  • 23 views

We are working on a survey for a client and they are wanting to show a chart on the final page that corresponds to a calculated score based on their survey results. There are a total of 8 questions with multiple choice answers. Based on each answer, we have a scoring logic that calculates the final score at the end of the survey for each topic. Each topic contains two questions. Scoring logic: Topic 1 = avg (question 1, question 2) Topic 2 = avg (question 3, question 4) Topic 3 = avg (question 5, question 6) Topic 4 = avg (question 7, question 8) Final Score = avg (question 1, question 2, question 3, question 4, question 5, question 6, question 7, question 8)

Best answer by SaurabhPujare_Ugam

Hi @mlarge , ! Hope you're looking similar to attached Screenshot. if yes here is the code <table border="2" cellpadding="5px"> <tbody> <tr> <td>Topic1</td> <td>Ans</td> </tr> <tr> <td>Topic2</td> <td>Ans</td> </tr> <tr> <td>Topic3</td> <td>Ans</td> </tr> </tbody> </table> You can pipe-text the scoring answer in place of answer

2 replies

Pat
Level 2 ●●
Forum|alt.badge.img+2
  • Level 2 ●●
  • December 4, 2018
Each chart can be implemented as a "normal" survey question (e.g. question type static content/graphic with text) and selected with display logic, based on the calculated score.

SaurabhPujare_Ugam
QPN Level 5 ●●●●●
Forum|alt.badge.img+18
  • QPN Level 5 ●●●●●
  • Answer
  • December 4, 2018
Hi @mlarge , ! Hope you're looking similar to attached Screenshot. if yes here is the code <table border="2" cellpadding="5px"> <tbody> <tr> <td>Topic1</td> <td>Ans</td> </tr> <tr> <td>Topic2</td> <td>Ans</td> </tr> <tr> <td>Topic3</td> <td>Ans</td> </tr> </tbody> </table> You can pipe-text the scoring answer in place of answer