Filter Element Schema Properties
A control that lets respondents search and filter the rows of a matrixdynamic or matrixdropdown question, or the panels of a paneldynamic question, on screen. It saves no answer: responses, exports, summaries, and PDFs leave it out, and filtering never changes the answers.
Element type: filter
Key properties: 9
Generation Hints
Section titled “Generation Hints”- Aliases: filter control, row filter, search box for a table, saved filters.
- Use when: a form has long lists of rows or repeated panels that respondents need to narrow down, such as order lines or team members.
- Recommended properties:
type,name,title,source,showSearch,items.
{ "type": "filter", "name": "orderFilter", "title": "Find order lines", "source": "orderLines", "showSearch": true, "items": [ { "name": "large", "title": "Large orders", "expression": "{qty} > 10" }, { "name": "backordered", "title": "Backordered", "expression": "{status} = 'backordered'" } ]}Key Properties
Section titled “Key Properties”source
Section titled “source”- Type:
string - Default:
—
The name of the matrixdynamic, matrixdropdown, or paneldynamic question to filter. The source must be a top-level question, not one inside another matrix or dynamic panel.
- Type:
filteritem[] - Default:
[]
Named filters respondents can switch between. Each item has a name, a title, and an expression that a row or panel must match. Expressions refer to the source’s column names (or the questions in a dynamic panel’s template) directly, without a row. or panel. prefix: {qty} > 10. Set allowEdit or allowDelete to false on an item to keep respondents from changing or removing it.
defaultItem
Section titled “defaultItem”- Type:
string - Default:
—
The name of the item applied when the form opens. Required answers are only checked on the rows or panels a filter shows, so don’t use a default filter where every row must be complete.
showSearch
Section titled “showSearch”- Type:
boolean - Default:
false
Shows a search box that keeps rows or panels containing the typed text in any field.
searchFields
Section titled “searchFields”- Type:
string[] - Default:
[]
The fields the search box looks in. Empty searches every field.
allowMultipleItems
Section titled “allowMultipleItems”- Type:
boolean - Default:
true
Whether the filter keeps a list of named filters. Set it to false for a single filter without a list.
allowAddItems
Section titled “allowAddItems”- Type:
boolean - Default:
true
Lets respondents save their own named filters. They last only while the form is open and aren’t saved with the response.
allowFastMode
Section titled “allowFastMode”- Type:
boolean - Default:
true
Offers a quick editor with one condition per field.
allowAdvancedMode
Section titled “allowAdvancedMode”- Type:
boolean - Default:
true
Offers an advanced editor for combined conditions.
Choosing Fields
Section titled “Choosing Fields”Every column of a matrix source, and every question in a dynamic panel’s template, is a field respondents can filter by. Set allowFiltering: false on a column or template question to leave it out. filterOperators limits the comparisons offered for that field, from empty, notempty, equal, notequal, contains, notcontains, greater, less, greaterorequal, and lessorequal.
{ "type": "matrixdynamic", "name": "orderLines", "columns": [ { "name": "product", "cellType": "text" }, { "name": "qty", "cellType": "text", "inputType": "number", "filterOperators": ["equal", "greater", "less"] }, { "name": "internalNote", "cellType": "text", "allowFiltering": false } ]}Shared Properties
Section titled “Shared Properties”This page lists only properties that are specific to this element type or especially important for generation.
- Use Shared Question Properties for
name,title,description,visibleIf,width, and layout options. Answer properties such asisRequired,defaultValue, andvalidatorsdon’t apply. - Use
pageSizeon the source question to show long lists a page at a time.