Skip to main content

Date Filter

Use a start and end date to filter records, then bind the Date Filter variable and verify the range in preview.

Use Date Filter to let users choose a start date and an end date. For example, add it to a project page so users can find records by Closing Date within a selected period.


Add Date filter

In the designer, drag Date Filter from the controls panel to a section or container.


Basic of the Date Filter field

Under Content → Basic, set the title and review the associated filter variable. The control creates a variable for the selected range. Use Edit to change its name or Reset to bind an existing variable. Field titles

Bind the date range

In the target Data Table, Collection, News, or Gallery control, open its data filters. Select a date field such as Closing Date, choose Equals, and set the value to the associated Date Filter variable. The variable supplies both the start and end dates.

Date filter example. Select Closing Date as the field, Equals as the operator, and filter_DateRange as the value holding both dates.

Choose whether changes apply immediately or when the user clicks an apply button. Associated variables and fields · Data filter apply types

Appearance of the Date Filter field

Under Content → Appearance, arrange the two pickers horizontally or vertically. Use separate placeholders for the start and end dates. Set title visibility and width, and set vertical alignment when the title layout is horizontal. Use Dynamic Display Rules when the filter’s display depends on a condition.


Validation of the Date Filter field

Under Content → Validation, choose Readonly to prevent changes or use Custom Validation for a rule and its error message. Custom Validation


Action call of the Date Filter field

Under Content → Action, select the configured action to run whenever the filter value changes. Check what happens when a user changes the start or end date.


Field -Editable

Open Style → Field - Editable to set the appearance of the date pickers while users can edit the range.

Style the editable date range

Set picker spacing, typography, alignment, padding, and field width. Use field alignment when the control is narrower than its container. Set text and background colors, border, radius, and shadow for normal and focus states, and style the placeholder and error message.

For read-only ranges, use Style → Field - Read Only to set typography, colors, alignment, padding, border, and radius.

Style of title

Style the filter title separately. Field titles


Advanced Settings

Review the advanced layout and visibility options. In preview, use known records before the range, on both boundaries, inside the range, and after it. Include records with a time component if the source field stores one. Check which records appear, then change or clear the range. With a manual apply button, verify that the results update when the user clicks it. Advanced options


​


​

Did this answer your question?