Scripting functions for survey metadata

Introduction

These functions return information about the survey or the respondent taking it. Metadata functions can be used anywhere script is valid.

Functions

getRecordID

Function: getRecordID(): string

Return: The internal unique identifier for the respondent record.

Inaccessible metadata variables

Each survey includes system variables containing information about the survey and respondent. These values cannot be read or overwritten in custom scripts.

  • Last Question Seen – The last question the respondent saw before they exited the survey.
  • Start and end time – The time the respondent entered the survey and the time they exit the survey.
  • Elapsed time – The end time minus the start time.
  • UserAgent – A string containing information about the respondent’s device