iFormBuilder JavaScript Tips & Tricks
Table of Contents
What is the Timer element?
The Timer element is similar to a stopwatch and is used to measure the amount of time elapsed in seconds. You can have multiple timer elements on a single form and the values are accessible through JavaScript.
Click here for more information on the Timer element.
How do I parse the Timer data?
To parse the Timer data into another field, follow these instructions.
PLEASE NOTE: The following instructions assume that you have a Timer element added to your form. If you need instructions on how to do so, please have a look HERE.
STEP 1. With your form loaded in the Form Builder, add a Read-Only element under the Timer element. In this example, the Read-Only element will be named Time (in Seconds).
STEP 2. In the Dynamic Value of the Read-Only element, put the following:
how_long_did_the_inspection_take_.timeInSeconds
In this example, how_long_did_the_inspection_take_ is the data column name of the Timer element.
STEP 3. Test the functionality on your device.
Download this Form Package to use as an example.
Comments
0 comments
Please sign in to leave a comment.