Date visibility
See also: Time visibility
Actions – Abstract
The Date visibility action displays or hides the date in a Date/Time element at runtime. This element can also be a component in a Date range.
The Date visibility action displays or hides the date in a Date/Time element at runtime. This element can also be a component in a Date range.
A 'Target element' of the Date/Time 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 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 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 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:
The Date/Time element ETA appears for the first entries without date and in combination with the Today Button.
The last unloading point is only reached the following day. Here the ETA appears including the date.
Configuration:
|
Three behaviours are set up for the Date/Time element as shown on the left:
|