Date control

The date control can be used when you want users to enter a date into a field on a web form.

Properties

Once a date control has been added to a form, you can configure it using the options on the Properties tab.

Required: Makes the date field mandatory.

Read-only: The date field will be non-editable when a user is viewing the form.

ID: The date control ID. The ID is automatically assigned when a Date control is added to a form. The value of this field cannot be edited

Name: A name for the date control. This name is used to identify the date control in other forms. You cannot edit the name of a date control if it is mapped to an index field.

Field Mapping: Select an index field from this list in order to map the date control to the field. Only date type index fields are displayed.

Default Value: A default value for the date field. This default value will be used if no input is provided. You can enter the $$DATE$$ replaceable text variable to automatically populate the current date as the default value.

Tab Order: The sequence in which a field will be selected when Tab is pressed. For example, if the tab order for a field is set to 3, when Tab is pressed for the third time, that field will be selected.

Configure Validation: Opens the Edit Field Validation window where you can configure date validation. This option will not be available if the date field is mapped.

Edit Rules: Opens the Edit Rules window where you can configure conditional rules for the control. See Conditional rules for more information.

Configure validation for a date control

You can configure validation for a date control to ensure that users select a date within a specific range or a certain day of the week when filling out the form.

  1. Under the Properties tab, click Configure Validation.
  2. In the Edit Field Validation window, configure date validation, then click Save

    Format: Select the required date format from the drop-down list.

    Minimum Date: The earliest date a user is able to enter when filing out a form. You can use $$DATE$$ to indicate the current date. For example, a minimum date of $$DATE$$-30 would validate that the date is MORE than 30 days in the past.

    Maximum Date: The latest date a user is able to enter when filing out the form. You can use $$DATE$$ to indicate the current date. For example, a maximum date of $$DATE$$+90 would validate that the date is LESS than 90 days in the future.

    Day of the week: The day(s) of the week a user is able to enter when filing out the form. By default, all days of the week are selected. Click a day of the week to deselect it. If a day of the week is not selected, the form can not be saved when a date falling on that day of the week is entered.