Skip to content

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

  • 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'" }
]
}

  • 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.

  • 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.

  • Type: boolean
  • Default: false

Shows a search box that keeps rows or panels containing the typed text in any field.

  • Type: string[]
  • Default: []

The fields the search box looks in. Empty searches every field.

  • Type: boolean
  • Default: true

Whether the filter keeps a list of named filters. Set it to false for a single filter without a list.

  • 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.

  • Type: boolean
  • Default: true

Offers a quick editor with one condition per field.

  • Type: boolean
  • Default: true

Offers an advanced editor for combined conditions.

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 }
]
}

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 as isRequired, defaultValue, and validators don’t apply.
  • Use pageSize on the source question to show long lists a page at a time.