Documentation Docs
Documentation Docs

How to Pipe Selected Choices to a Dynamic Matrix

About Text Piping

Text piping is a feature used in forms and surveys to dynamically insert (or "pipe") specific information entered or selected by a user into subsequent questions, text fields, or the "Thank You" page. This allows you to create personalized and context-sensitive content and improve overall user experience by making the form or survey feel more tailored to the individual's responses.

This guide shows how to pipe selected choice options of a multi-select question to rows of a Dynamic Matrix.

Supported Source Question Types

You can use Checkboxes or Multi-Select Dropdown (Tag Box) as a question that provides choice options to the rows of a Dynamic Matrix. In the instructions below, we will be using a Checkboxes question. The same steps apply to a Multi-Select Dropdown as well.

Configurations

In order to pipe selected choices to a Dynamic Matrix, follow these steps:

  1. Add a Checkboxes question to the design surface.
  2. Under General, assign a Question name and a user-friendly Question title to it.
  3. Under Choice Options, populate the question with Choices.
  4. Under Data, locate the Join identifier property and assign any unique value to it.
  5. Locate the Store values in the following property field and enter another unique value into it.

    Pipe choices from a Checkboxes question to a Dynamic Matrix
  6. Add a Dynamic Matrix to the design surface.
  7. Under Conditions, locate the Make the question visible if property to make the matrix visible only when at least one checkbox of the source question is selected.
  8. Click the Magic wand icon on the right of the property. This action opens a popup with a GUI for setting up display logic.
  9. In the popup, select the source question ID (its "Question name" property value you assigned in step 2).
  10. Select the Not Empty condition from the drop-down menu and click Apply.
  11. Under Data, locate the Join identifier property and set it to the same value you have used for this property of the Checkboxes question in step 4.
  12. Select the column of the matrix to which you want to pipe selected choices. This action will display the settings of the column.
  13. Under General, locate the Column name field and enter the value you used for the Store values in the following property field of the Checkboxes question in step 5.
  14. Set the Cell input type to Expression (read-only).

    Pipe selected choices to the rows of a Dynamic Matrix
  15. Configure the remaining columns of the matrix.

Send feedback to the SurveyJS team

Need help? Visit our support page

Copyright © 2024 Devsoft Baltic OÜ. All rights reserved.

Your cookie settings

We use cookies on our site to make your browsing experience more convenient and personal. In some cases, they are essential to making the site work properly. By clicking "Accept All", you consent to the use of all cookies in accordance with our Terms of Use & Privacy Statement. However, you may visit "Cookie settings" to provide a controlled consent.

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.