Workbench User Guide : 9. Generating Fields from Predefined Templates : How You Can Add a Generated Field to a Frame : The countdown_timer Field Template
 
Share this page                  
The countdown_timer Field Template
The countdown_timer field template creates a countdown timer that displays a timer that counts down from a specified amount of time since the frame was opened and updates at a specified time interval. The display format is hours and minutes by default, but you can display seconds also.
Create a Countdown Timer Field
You can create a countdown timer field using the countdown_timer field template in the Frame Editor.
To create a countdown timer 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 countdown_timer template, and then click OK.
4. Position the field on the frame.
The Countdown Timer Assistant appears.
5. Complete the dialog using the following information:
Amount to Countdown (hh:mm)
Specifies the time from which to count down when the frame is run
Timer Interval (in seconds)
Specifies the amount of time (in seconds) after which the countdown display is updated
Display Seconds
Specifies that seconds should be displayed in the countdown timer
6. Click Generate.
The field is created and displayed on the form.
How a Countdown Timer Field Works
When the frame containing the countdown timer is executed, the field appears containing a specified initial (default) value. For example, the default values in the Countdown Timer Assistant dialog produce the following: