How do I display a custom coded chart within a survey based on answer inputs? | XM Community
Skip to main content
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 😎
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.
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

Leave a Reply