Available on the Observe plan.
The Entered text filter helps you identify sessions where users entered or changed the text in an input field like a form, checkout screen, search bar, and more. You can refine this filter by specifying conditions such as the page URL or the CSS selector. Follow the steps described below to learn how to use it for your recordings.
Click the Add filter dropdown menu and select Entered text.
You can combine this filter with other session filters to get the most precise results. You'll find a detailed description of all available filters in How Do I Filter Session Data?
Add conditions to further refine the filter.
You can refine the Entered text filter by applying multiple conditions based on:
- Whether the action occurred or did not occur.
- The page URL - See our How to Use Conditions in URL Filtering article for help using URLs as the filter condition, including using regex.
- The CSS selector - we only support CSS selectors as they appear when stored by Hotjar. This may differ from how CSS selectors appear when copying them from your live site. Because of this, when using the CSS selector filter, we recommend tracking HTML IDs, which are unique and contained within the CSS selector rather than the complete CSS selector.
- For example, rather than using the filter: CSS selector is x, we recommend using the filter CSS selector contains y (where 'y' would equal a unique HTML ID).
- We don't support CSS selector values that include whitespace. As a workaround, you can remove the whitespace using this Delete All Whitespace Characters website.
What are CSS selectors?
CSS selectors define which elements on a page will receive a specific set of CSS rules (or styles). For example, the CSS selector .button will match any element on a page that has a class attribute of a button.
Click Apply to confirm and filter your session data.