fb-time-recorder places a time recorder field on a form, allowing the user to record periods of time. For example, to record one of more periods of time spent working on a task, a sc-time-recorder field would be placed on a Task form. Then for each time period recorded against a task, sc-time-recorder will create and link a Timesheet document to the parent Task document and include the following information:
- Start time of the time period
- End time of the time period
- A link to the parent Task document
- A link to the logged in user’s account document
Note: The parent Task document must first be created in order to link timesheet documents to it. Until then, the sc-time-recorder field on the Task form is disabled.
Clicking the sc-time-recorder field will start or stop a time period and in the process create and link a timesheet document to the parent document and to the logged in user’s account document. Doing so again will create and link another timesheet document.
The sc-time-recorder definition provides fields for setting the properties of a text box field and is fully described below.