Add a free answer whenever you select certain cells in a matrix
Warning
Add this code before apply any array filter
Add your questions on the same page. The first question will be the matrix we will use as a filter.
The second question will be the open question that we will show depending on whether certain cells are selected in the matrix. Make sure to set the question to not required.
Copy and paste the code below into the Javascript editor of the current page.
Make the appropriate modifications to the following snippet.
Variables
Variable
Description
Example
filter
The question code of the matrix you want to use as a filter
question_code
The question code of the open text you want to hide/show