Create a date/time question

Create a date/time question when a subject's answer to a question includes times or date values, or both.

Want to see how to perform this task? Watch the video below.

You must first create a form. For step-by-step instructions on how to create various types of forms, see Forms.

To create a date/time question:

  1. On the form, click Add Question, and select Date/Time.

    Tip:

    If you need to change the question type, select an option from the drop-down on the question.
  2. On the right, expand the Details pane and enter a reference code for the question.
    A reference code is a one-word abbreviation for the question.
  3. In the Question Hint field, provide site users with guidelines for data entry, if necessary.
    For more information, see Create Question Hint text.
  4. If screening, randomization, and dispensation can't happen until a site user enters a valid answer for the question, or if the question is required to be completed for all subjects, make sure the Required toggle (A toggle is turned on and colored blue by default) is turned on.
  5. If you want to allow for a future date to be entered, turn on the Allow Future Date toggle (A toggle is turned on and colored blue).

    Note:

    This setting it set to On by default.

    Entering a future date when this setting is configured to Off results in a validation error.

    This control is not available for time-only questions.

  6. If you want to hide a question, so site users no longer see it, turn on the Hidden toggle (A toggle is turned on and colored blue by default).

    Note:

    A hidden question or item can also be required in a form, so the Required toggle remains switched on. However, we recommend you switch off the Required toggle when hiding a question from a site user, so the visit status is not dependent on the completion of the question. For example, a coding question that can be populated by a coding application, if hidden, is not populated until the coding scheduled job is run.
  7. To configure data classifications for a hidden question, see Classify a hidden question.
  8. To configure source data verification settings at a question level, see Configure source data verification settings.
  9. Select the Type of date/time data you want to capture:
  10. Select the Format for the Type selected.
  11. To collect partial dates and/or times, enable Partial Date Allowed. For example, you can collect just Hours and Minutes when a Time Only type is selected, or just Year, Month, Day, Hours when the Date & Time type is selected.
  12. Expand the Advanced sidebar and make sure the SAS properties are correctly defined for both the SAS Variable and SAS Label fields.
  13. To enter a validation rule, see Set up a validation rule for a question.
  14. To save the form, in the lower right of the form, click Save.

    Tip:

    If the Save button is disabled, make sure there are no blank questions on the form.