Question Type: Date/Time Selector and Stamp

Date/Time questions include two question types: Date/Time Selectors and Date/Time Stamps. Date/Time Selectors prompt the mobile user to select a date, time, or date and time value. Date Time Stamps collect the same data, but trigger when the mobile user opens the page the question is on. Use Date/Time data to build timesheets or to add date and time information to invoices or work orders. This topic explains how to set up a Date/Time question and describes use cases for each question type.

Contents

Mobile App

The Date/Time stamp triggers when a mobile user opens the page the question is on. This is useful for recording the user’s progress through a form or for recording when a mobile user interacted with a page. The following image shows how the Date/Time Stamp displays on the Mobile App.

A Date/Time Stamp question on the Windows app.

With a Date/Time Selector question, mobile users manually select a date, time, or both. This is useful for recording dates or times in the past or future, such as license expiry dates or inspection times. The following image shows how the Date/Time Selector displays on the Mobile App.

2019-02-01-iOS-DateTimeSelector01.png

Form Builder

The following image shows how the Form BuilderClosed The Form Builder is the tool that form designers use to create forms. In the Form Builder, accessed from the TrueContext Web Portal, form designers can add and edit pages, sections, and questions, as well as attach data destinations and configure the form's settings. displays the Date/Time Selector question.

2019-01-29-FB-DateTimeSelector01.png

The following image shows how the Form Builder displays the Date/Time Stamp question.

2019-01-29-FB-DateTimeStamp01.png

The Date/Time Selector question type has three tabs: General, Properties, and Help OptionsClosed Help Options are ways to add help content, such as YouTube videos, web pages, text, or images, to questions in a form. Mobile users simply tap the help icon next to a question to see the help that the form designer provided..

The Date/Time Stamp question type has only two tabs: General and Help Options.

General

Unique ID

The Unique IDClosed A Unique ID refers to the specific identifier of a question, form page, form section, or Data Destination. Unique IDs are used as reference points when pulling data for conditional logic, Analytics projects, Data Destinations, and Documents. is used to reference the question in Conditional Logic, DRELClosed Data Reference Expression Language (DREL) is used to get form data and metadata and add it to a string, such as dates, usernames, or answers to questions in forms. expressions, Destinations, and Documents. You can customize the Unique ID or let the system generate an ID based on the question text.

Info:The topic Overview: Unique IDs describes how to use Unique IDs in more detail.

Data Types

The Date/Time Selector and Date/Time Stamp support the following Data Types:

Date Time Date/Time
Date/Time Selector
Date/Time Stamp

Info:For questions that use the Date or Date/Time Data Types, TrueContext stores dates in the format yyyy-MM-dd. The Web Portal displays the date format based on the user profile language. You can use DREL to customize how the system formats dates sent to Data DestinationsClosed A Data Destination specifies where to send data from a submitted form. You can use Data Destinations to automate data sharing and storage, routing data to a specific service (such as email or cloud storage) in several different formats. and displayed in Documents.

Submission details for the same record in both English and Spanish. The Web Portal displays different date formats based on the user profile language.

Restrictions

Restrictions control how mobile users interact with a question. You can set restrictions on the question itself or manage restrictions with Conditional Logic.

The following table shows which restrictions you can set for the question type. Note that:

  • indicates a restriction that you can configure.

  • * indicates a restriction that is always on.

  • ✘* indicates a restriction that is always off.

Required Read-Only Hidden on Device Hidden on Reports

Keep question width to 100%

(Side-by-Side SectionsClosed Side-by-Side Sections display questions and answers in a condensed, two-column layout. This can make it easier and faster for field users to scan, complete, and confirm the answers in a form. only)

Date/Time Selector
Date/Time Stamp ✘* ✓*

* The Date/Time Stamp question cannot be Required because it records a date/time stamp without interaction from the mobile user. It is always Read-Only.

Properties

The Date/Time stamp does not have a Properties tab. However, the Date/Time Selector has two property settings:

  • Range Validation—Ensure the mobile user selects a date in the past or future. For example, an incident report form expects the incident date to be in the past.

  • Default Value Source—Save time by setting a default date/time value. This can be a static time, the time the mobile user opened the page, or the time they opened the form.

The Properties tab in a Date/Time Selector question. In this question, the Range Validation is set to In the Past. The Default Value Source is set to a static date.

Help Options

Adding “Help” content to forms gives mobile users access to support and other resources out in the field. Help content is available to users through a help icon next to a question. Any question in the form can include a link to YouTube videos, web pages, or work instructions. 

Info:The topic Add Help Options to Questions describes Help Content in more detail.