Configure Smart Date

The Smart Date server behavior allows the web developers to include a smart date text field in their site pages. Before applying it, there must be a text field added in the Dreamweaver page.

This server behavior is accessible from the Application panel, Server Behaviors -> + -> MX Kollection -> Form Controls -> Smart Date.

The user interface has only one tab. Directions about its correct configuration are given below.

 

To set the dialog box options, follow the next steps:

  1. In the Apply to field drop-down menu select the text field on which to apply the server behavior.

  2. The Date format used in your site is displayed in bold text. You can change it by clicking on the button next to it, Change. For more details, read Date formats.
    Note:
    If the entered information is to be inserted in your database, select the date format that is compatible with the table field that stores the date-type data.

  3. The Use spin control checkbox allows the appearance of the increment/decrement controls when the widget is loaded in the browser.
  4. The Use default now checkbox enables the smart date text field to automatically display the current date when the site page is loaded, in case there is no other default value.
  5. The Restrict to mask checkbox limits the number of characters typed to the mask length.
  6. In the Default value text box enter a starting value for the smart date text field. You can also select it from one of the available recordsets in your page by using the lightning icon on the right.
  7. The three buttons on the right of the interface offer you the next functionalities:
    · Click OK when you are done configuring the server behavior.
    · Click Cancel to exit without applying the new settings.
    · The Help button opens this help page.