a!recordFilterDateRange() Function

Creates a user filter for record list.

This function creates a Facet type object, and is used within a Record Type Object for creating and configuring date range user filters. See the Expression-Based User Filters page for common uses.

Syntax

a!recordFilterDateRange( name, field, defaultFrom, defaultTo, isVisible )

  • name (Text): The name of the user filter that displays to end users.
  • field (Text): The name of the field the filter will apply to.
  • defaultFrom (Text): Determines which, if any, starting date is applied when a record list first loads.
  • defaultTo (Text): Determines which, if any, ending date is applied when a record list first loads.
  • isVisible (Boolean): Determines whether the filter is visible to the user at runtime. Default is true.

Returns

Facet

Example

1
2
3
4
5
6
7
=a!recordFilterDateRange(
   name: "Hire Date",
   field: "hireDate",
   defaultFrom: "today()",
   defaultTo: "today() + 365",
   isVisible: true
)
FEEDBACK