--- title: "Date visibility" slug: "freaction-date-visibility" updated: 2026-05-05T07:05:08Z published: 2026-05-05T07:05:08Z canonical: "docs.lobstersoftware.com/freaction-date-visibility" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Date visibility *See also*: [Time visibility](/v1/docs/en/freaction-time-visibility) > [!NOTE] > **Actions – Abstract** > > The [Date visibility](/v1/docs/en/freaction-date-visibility) action displays or hides the date in a [Date/Time](/v1/docs/en/fre-date-field-vo) element at runtime. This element can also be a component in a [Date range](/v1/docs/en/fre-date-range-vo). The [Date visibility](/v1/docs/en/freaction-date-visibility) action displays or hides the date in a [Date/Time](/v1/docs/en/fre-date-field-vo) element at runtime. This element can also be a component in a [Date range](/v1/docs/en/fre-date-range-vo). ![images/download/attachments/189436074/image-2024-10-29_9-47-41-version-1-modificationdate-1730191661001-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-29_9-47-41-version-1-modificationdate-1730191661001-api-v2.png) - A "Target element" of the [Date/Time](/v1/docs/en/fre-date-field-vo) type must be linked so that the action appears under **Action type**. - The **Display date** option determines whether the date is shown (checked) or hidden (unchecked). **NOTE:** If the time of a [Date/Time](/v1/docs/en/fre-date-field-vo) element is not displayed when the date input area is hidden, the element may contract to a minimum. However, it does not disappear completely and remains relevant for a validation. If the element uses the **Required** field option or if [Validators](/v1/docs/en/frevalidators) are configured, they will continue to be evaluated, although interactive access is no longer possible. If the validation triggers information texts, the field is automatically displayed wide enough for them to be readable. ## Example A planned tour should be entered in a form as a list of unloading points, each of which should specify the estimated time of arrival (ETA). The [Date/Time](/v1/docs/en/fre-date-field-vo) element used should display a combination of date and time, unless the current date ("Today") is selected. In this case, a button labelled **Today** should appear instead of the date. When this is pressed, the date should appear again so that it can be changed if necessary. Runtime example: ![images/download/attachments/189436074/image2020-6-10_8-33-30-version-1-modificationdate-1730130431000-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-6-10_8-33-30-version-1-modificationdate-1730130431000-api-v2.png) - The [Date/Time](/v1/docs/en/fre-date-field-vo) element **ETA** appears for the first entries without date and in combination with the **Today** [Button](/v1/docs/en/fre-button-vo). - The last unloading point is only reached the following day. Here the **ETA** appears including the date. Configuration: | ![images/download/attachments/189436074/image-2024-10-29_9-50-54-version-1-modificationdate-1730191853382-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-29_9-50-54-version-1-modificationdate-1730191853382-api-v2.png) | Three behaviors are set up for the [Date/Time](/v1/docs/en/fre-date-field-vo) element as shown on the left: - The first two behaviors ("afterToday" and "beforeTomorrow") are not shown in detail here. They contain no actions and check by **Behavior type** [Compare with (Form designer)](/v1/docs/en/frebehav-compare-with), the value of the [Date/Time](/v1/docs/en/fre-date-field-vo) element relative to the actual date. They form the basis for a [Logical condition](/v1/docs/en/frebehav-logical-check) in the third behavior ("Changed"). --- - The behavior "Changed" is triggered by the **Triggering** **event** [Changed](/v1/docs/en/fretrigger-changed) and [Focus out](/v1/docs/en/fretrigger-focus-out), so that the appearance around the date field can be adjusted as desired, depending on its value. --- - The **Behavior type** [Logical condition](/v1/docs/en/frebehav-logical-check) links the truth values from the "afterToday" and "beforeTomorrow" behaviors in an AND conjunction, which is fulfilled exactly when the date value of the executing element corresponds to the current date ("Today"). --- - The **Actions on "true"** are executed when the date is "Today". Specifically, the "Today" [Button](/v1/docs/en/fre-button-vo) is displayed by [Show element](/v1/docs/en/freaction-show) and the date in the **Target element** is hidden by [Date visibility](/v1/docs/en/freaction-date-visibility) (with the option **Display date** not set). --- - If the date is not "Today", the **Actions on "false"** will be executed. Specifically, the "Today" [Button](/v1/docs/en/fre-button-vo) is hidden by [Hide element](/v1/docs/en/freaction-hide) and the date in the **Target element** is displayed by [Date visibility](/v1/docs/en/freaction-date-visibility) (with the option **Display date** set). **NOTE:** These actions are also configured for the behavior that is triggered when you click the "Today" [Button](/v1/docs/en/fre-button-vo). No details are given here. | | --- | --- |