Introduction
This article describes how to create a Text box control and use it as a filter. The steps will take you from a Page containing a table containing verbatim responses and a grid of bars chart based on coded data of these responses...
...to a Page containing a Text Box Filter that can be used to filter the table and the chart. In the below example, the filter is based on an open-ended cola awareness question. When we type "Cola" into the text field, both outputs are filtered to those respondents who included the word "Cola" in their verbatim response.
Requirements
- A Displayr document containing a Data set.
- A Displayr output to filter (e.g., table, chart, visualization, etc.).
- A text variable to use as a filter.
Method
- Select the output(s) you wish to filter with the Text Box field.
- Go to the Anything menu and select Filtering > Control > Text Box Filters on an Output.
- Select the text response variable(s) you wish to use as a filter and press OK.
- Select Yes if you wish to ignore case (e.g., match "Cola" with "cola"), or select No if you wish for the filter to be case sensitive.
Displayr will then do the following:
- Add a Text box field on your Page for every text variable you select in Step 3.
- Create a Text Box Filter variable in your Data Sets tree linked to each Text box selection.
- Apply the filter to all the outputs selected in Step 1.
See Also
How to Create a Combo Box Filter
How to Create a List Box Filter
How to Tag a Variable as a Filter
How to Create a Complicated Filter
How to Create a Binary Filter from Selected Data
How to Build Tables that Automatically Filter to the Latest Periods
How to Connect Filters to Controls Using R Code
Comments
0 comments
Article is closed for comments.