Add quiz question and answers in Klaviyo E-mails
In the following article, we’ll cover off how to add a summary of quiz questions and answers inside a Klaviyo email template. Alternatively, you can check out the following video.
Step 1: Add a section for your questions and answers
From the Content tab on the left-hand side menu, select the Table and drag and drop it inside your email template. This will be your question and answer summary section.
Step2: Connect your table to the quiz data
To do this head over to the Table Settings tab and select the Dynamic option. Then in the Row collection input box enter event.answers to connect the quiz recommendation data.
In the Row alias input box enter answer
You can copy and paste the following information straight into Klaviyo to connect the table to the quiz data:
Row collection:
event.answers
Row alias:
answer
As we won’t need 2 columns, we’ll go ahead and delete the second one containing the image:
Step 3: Add custom properties for questions and answers
To do this, return to the table’s Content tab. Inside the text cell we’ll enter the custom properties between {{ }}. We need to use the {{answer.question}} and {{answer.answer}} properties. For clarity, we’ll add the words Question: and Answer: just before the actual values:
For ease, you can copy and paste the following information straight into Klaviyo:
Questions:
{{ product.title }}
Answers:
{{ product.price.amount }}
{{ product.price.currency }}
Step 4: Customize and Preview
To see how the email template will look like click the Preview & test button from the top right-hand corner.
You can make customizations to the font size, weight, color, and centering. You can add padding to your columns, and change the number of and type columns in the table. For more details on available customizations please check out this article.
Please check out the following article on how to add quiz product recommendations in Klaviyo emails.
To see how to setup your Klaviyo flow please refer to our article here.