The Trends widget is a variation of the Numeric widget designed to provide a visual comparison of prior values recorded by the same question. The comparison can be in a tabular format and/or a graphical format.
Note: The trends widget requires an Internet connection to retrieve the "prior values".
Given numeric values V(i) that are recorded at date:time (T(i), the Trends table values are calculated as follows:
In the example below V(i)=65. All the prior values where recorded on the same date T(i), so they are ordered by Date_Created (see explanation of the "Trending date" property below).
Number type: Integer or Decimal. Specifies whether the input number may contain a decimal point.
Currency symbol: The currency symbol to use if Use currency symbol is checked.
Number of values: This is the number of prior values that will be displayed in the trends table rows and/or the axes of the graph. These prior values will be read from prior data records submitted to your website. This value must be less than or equal to 20.
Trending date: This is a date:time field in the form that will determine the order of the prior values. You can use any date, time, or date:time field in your form; or you can use the system Date_Created, which is the date:time when the prior record was first sent from the device used to capture it. Note that if for any reason the date or time field of two or more data records is the same, then Date_Created will be used to determine their order.
Key field filter: This field is used to determine which records will be compared by the Trends widget. For example, if a single form is used for taking measurements at different sites, then this value would probably be a Site_ID or something similar. Using this property will guaranty that measurements taken at the same site will be compared.
Use currency symbol: Places a currency symbol in front of the value. Note that these symbols are for display and PDF report purposes only. The currency symbol is not exported to Excel, CSV or other “Save as” formats. The currency also is not exported via web services or Sync & Save.
Range: Validates the input data in terms of a minimum and a maximum value.
Display trends button: Displays a button that must be clicked in order to display the trend table and graph. If not checked, the table and graph will be automatically displayed after the numeric value is entered. The button option is particularly useful in situations where an Internet connection is poor or non-existent (to prevent the doForms app from wasting time trying retrieve prior values form the website).