Workbench User Guide : 9. Generating Fields from Predefined Templates : How You Can Add a Generated Field to a Frame : The date_field Field Template
 
Share this page                  
The date_field Field Template
The date_field field template is used to create an entry field of the type date.
Create a Date Field
You can create a date field using the date_field field template in the Frame Editor.
To create a date field
1. On the Develop tab, in the Components portlet, open the frame in which you want to create the field from the field template.
2. Click Insert, Field From Field Template.
The Select a Field Template dialog appears.
3. Select the core application and the date_field template, and then click OK.
4. Position the field on the frame.
The field is created and displayed on the form.
How You Can Use a Date Field
When you run the frame, an empty entry field of type date appears. Any valid date, such as “1/30/06” may be entered and appears as shown when you press Enter:
You can modify the display format through the Property Inspector using date format templates. The field accepts only valid dates. For more information, see Property Inspector.