Design your survey

Carry an earlier answer into the next question.

Question piping uses information a respondent has already supplied. Refer to their chosen topic in a follow-up, select part of a ranking or calculate a value without asking them to enter the same information again.

Basic answer piping is available on every plan. Expressions and option attributes require Essential or above. Compare plans

Interactive example

Connect earlier answers to later wording and calculations

The screenshot shows Lensym’s expression editor with numeric answer references. Open the separate sample survey to try answer piping: enter a made-up name, choose a topic and see both appear in later wording.

The Lensym piping editor combining answer references and an average calculation in survey text.
The Lensym piping editor combining answer references and an average calculation in survey text.

A questionnaire that remembers the context

An earlier answer often establishes the context for what comes next: a chosen topic, a named experience or a preferred option. Piping lets later questions use that information directly. A follow-up can refer to the selected topic by name, making its subject explicit without requiring the person to repeat the choice.

Lensym supports answer references in question titles, descriptions, placeholders and other compatible fields. References appear as labelled pills in the editor, connecting the wording to a recognisable source question. The questionnaire remains one design, while selected parts of its text depend on the answers given.

Useful detail from more than simple text answers

Some answers contain several useful pieces of information. A ranking has an order of items, a date range has two endpoints, and an NPS answer can include both a score and a reason. Piping can select a supported component rather than treating the entire answer as an undifferentiated value.

That makes more focused follow-ups possible. The top-ranked housing priority can become the subject of an explanation; the start of a date range can anchor later wording. Choosing the intended component also keeps numeric calculations separate from labels that merely describe a number or a scale position.

Illustrative research workflow

Move from a housing priority to the reason behind it

A housing study asks people to rank Cost, Commute and Living space. The order reveals a preference, but the team also wants to understand the reason behind the highest-ranked priority. A generic open question would leave that connection implicit.

Piping gives the follow-up a specific subject: “Why is Commute your highest priority?” for someone who ranked Commute first. The same question structure works for each priority while using the respondent’s own answer. Later analysis can consider the ranking together with the explanation without treating either as a complete account on its own.

  1. Collect the structured preference

    The Ranking question captures the final order of the three priorities. That submitted answer supplies the source for the follow-up, rather than the order in which the items first appeared.

  2. Make the open question specific

    The top-ranked-item reference becomes part of the next question’s wording. The researcher writes one follow-up and the source answer supplies its subject for each respondent.

  3. Check the relationship in Preview

    Changing the ranking should change the follow-up’s subject. If the ranking is optional or can be bypassed, the team chooses wording or routing that also makes sense without that input.

Expressions extend the connection between questions

On Essential and above, expressions support arithmetic, comparisons and conditional wording. Two compatible numeric ratings can supply an average in a later content block. Supported numeric settings can also depend on an earlier total, such as a maximum for the number of attended sessions that included an exercise.

The value comes from making the relationship explicit: named inputs, an intentional rule and a result that can be tested. A displayed calculation does not automatically create a new answer column or validate a research scale. The original answers remain important for any separate scoring and analysis work.

Personalisation that respects the survey route

A piped reference uses an earlier question, but not every respondent necessarily answered it. Optional questions and branches affect which inputs are available. Lensym’s piping tools fit best with a clear decision about what the later question should say when the source is absent.

That can mean a neutral fallback, a route that bypasses the dependent question or a required source where the study genuinely needs it. Preview makes these cases visible. Missing, zero and No can have different meanings, so the wording and calculation should preserve the distinction that matters to the study.

Common questions

Do I need to write piping syntax myself?
No. The field editor and drag-to-field controls insert references for you. The underlying markers are {{v:questionId}} for answers and {{e: … }} for expressions.
Does piping automatically handle missing inputs in a score?
No. Decide what missing input means for your calculation, then configure and test that behaviour. Requiring the inputs is appropriate only when the study genuinely needs them.

Ready to set it up?

The documentation covers the controls, settings and worked examples.

Make the next question build on the last answer.

Try a specific follow-up with basic answer piping on any plan. Add expressions on Essential or above when your design needs calculations or conditional wording.