Description:
The date picker widget lets users select a date and/or time and stores the data in the ISO format as JS.
Inputs
- Input Size - Select between any of the display sizes (mini, small, medium, large)
- ID/Name - Name of widget generated by FlowWright (read-only field)
- Use Default Date - Select the checkbox to display the current date (tick mark)
- Use Time - Select the checkbox to display the current time (tick mark)
- Required - Select the checkbox for mandatory (tick mark)
- Hide - Select the checkbox to Hide (tick mark)
- Read Only - Select the checkbox to Read-Only (tick mark)
- Minimum Date - Provide the minimum date for the date range
- Maximum Date - Provide the maximum date for the date range
- Tool Tip - Enter information to display on mouse hover on the form render
- Styles - Enter the CSS scripts for widget styles
- Apply Classes - Select between custom classes defined
- Save - Save the input values
- Delete - Remove this form widget from the designer page
- Close - Close the input popup window
Design:

Example:
Let’s build and execute the “DatepickerDef” example.
- Create a Form definition called “DatepickerDef.”
- Drag a “BootstrapGrid, Label, Datepicker, and Submit” control to the canvas and arrange them as shown below.

- Double-click the “Datepicker” widget to configure the “Settings” properties. Select the display size from the drop-down list. Provide a name for the control. Select the “Default Date and Time” checkbox to display the current datetime during runtime. Select the “Required” checkbox for mandatory user input. Select the “Hide” checkbox to hide this widget during runtime. Select the “Read-Only” checkbox to view the control and not make any selection. Click the Save button.

- Double-click the “Datepicker” widget to configure the “Conditions” properties. Provide the minimum and maximum date range to be accepted. Click the Save button.

- Double-click the “Datepicker” widget to configure the “Styling” properties. Provide the syntax for the CSS styles. Select the classes to apply from the global drop-down list. Click the Save button.

- Double-click the “Datepicker” widget to configure the “Other” properties. Provide the tool tip text information. Click the Save button.

- Double-click the “Datepicker” widget to configure the “Globalize” properties. The application will alert you if there is nothing to globalize, as shown below. Otherwise, select the language from the drop-down list and click the Translate button. Click the Save button.

- Save the Form definition. Select Actions - Create Form Instance menu option. Generate a new Form Instance and select the check box to edit this Form Instance.

- The Form is rendered to the user as shown below. Select the datetime value and click the Submit button to complete.

- Note: Selecting the datetime values outside the condition range is unacceptable.

Definition Sample:
You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after import. Then, save the definition to confirm the changes.
Click here to download the sample file.