All Collections
Advanced automation
Loops
Displaying Looped Responses Inline
Displaying Looped Responses Inline

How to display your looped responses in one single line.

Lorraine avatar
Written by Lorraine
Updated over a week ago

Rather than having a whole section looped, with the new content displaying on a new line, you might wish to have your responses displayed in one single line.

In order to display looped responses in line, you will need to create an "operation" (if you are not familiar with the concept, you can read our article about operation here)

This is a Join (1) operation with two arguments:

(a) Attribute as Array: This will include the name of your attribute that corresponds to the looped question in the questionnaire, the attribute that you select should already be wrapped in a loop in the document itself.

(b)Text: These are the separators that you want between each looped response. So in this example if you want to display your answers as “Answer 1, Answer 2, Answer 3” you should use “, “ as the separator, including the space after the comma.

You can then insert the operation directly into the body of your template, by navigating to "Document" in the sidebar of your template and placing the cursor where you want the operation to be inserted. Then click the Σ button (“Insert quick operation”) in the "Automation" tab.

Once your operation is inserted, it will look like this (notice how the colour is different from a placeholder):

You can test it by creating a document or by going to live demo in your template. Example of how your content will appear when placed directly in the document.

Note that if you do not want the original attribute to display in the template body itself, you can hide the original loop in a condition with a phantom attribute (one that will never display in the questionnaire).

Did this answer your question?