LogoLogo
Back to studio
  • 🧠Core Concepts
    • Introduction to Formsort
    • Formsort quickstart guides
      • Add content and collect answers
      • Capture demographic data
      • Add informational content
      • Template your variables
      • Add conditional logic
      • Using conditional logic with Calculated and API variables
      • Add a scheduling option
      • End the flow
      • Review your variable schema
      • Set up integrations
    • How data works in Formsort
      • Responder UUIDs
    • Understanding flows
    • Versioning in Formsort (Deploying)
      • Variant revisions
      • Managing revisions
  • ✨Creating Flows
    • Building a new flow
      • Groups
      • Steps
      • Copy-pasting form content
  • Adding questions and content
    • Questions
      • Select
      • Text
      • Address
      • Comparison
      • Confirmation
      • Date
      • Date & time
      • Email address
      • File upload
      • Grid choice
      • Iframe
      • Image upload
      • Number
      • Payment
      • Phone number
      • Postal code
      • Question group
      • Region
      • Signature
      • SSN
      • Yes/No
    • Content
      • Statement
      • Image
      • Next button
      • Video
      • Divider
      • Map
  • Controlling the flow with conditions and logic
    • Advanced logic
  • Variable templating
  • Redirects and endings
  • Field validation
  • Flow and variant management
  • Content library
  • 🧬JSON Form Definition
  • JSON schemas
  • Validating flow schemas
  • Events subscriptions
  • Flow content data format
  • 🎨Styling
    • Customizing appearance
      • Content area & form layout
      • Buttons
      • Typography
      • UI states
      • Color and dimension variables
      • Question containers
      • Inputs and dropdowns
      • Checkmarks
      • Tables
      • Sliders
      • Divider lines
      • Progress bar
      • Comparison cards
      • Animations and transitions
  • CSS & Advanced Styling
    • Custom CSS overrides
    • Step styling
    • CSS reference
  • 🔁Form Behavior Settings
    • Variant settings
      • Form behavior for returning users
      • Group ranking API
    • Navigation sidebar
  • ⚙️Response Data Collection & Management
    • Schema (variables)
      • Variables from questions
      • Externally provided variables
      • Calculated variables
      • API lookups
      • System Library variables
      • Orphaned variables
  • Saving & retrieving responses
  • Importing Data
    • URL parameters
    • POST body
    • Embed query parameters
  • 📊Analytics and Attribution
    • Built-in analytics
    • Split testing
  • 🚀Publishing and Deployment
    • Live preview overview
    • Environments
      • Loading different environments
    • Embedding
      • Web-embed API
        • React-embed
      • Adding authentication
      • Embedding forms in iOS and Android
      • Setting up a dev environment
    • Pre-deployment checklist
  • 📁Workspace Management
    • Accounts
      • Roles and permissions
    • Custom domains
    • Workspace domain detection
  • 🛠️Formsort Admin API
    • Admin API
  • 🔌Integrations
    • Form answers and events
      • Analytics events
      • Signed requests
      • Event payload shape
      • Submission frequencies
      • Runtime error reporting
    • Integration reference
      • Amplitude
        • Amplitude cross domain tracking
      • BigQuery
      • FullStory
      • Google Analytics
        • Updating from Universal Analytics to GA4
      • Google Cloud Storage
      • Google Sheets
      • Google Tag Manager (GTM)
        • JavaScript triggered by flow events
      • Hubspot
      • Jornaya
      • Optimizely
      • PostgreSQL
      • Redshift
      • Rudderstack
      • S3
      • Salesforce
      • Segment
        • Segment Setup
        • Segment cross domain tracking
      • Stripe
      • TrustedForm
      • Webhooks
        • Zapier
Powered by GitBook
On this page
  • Overview of the System Library
  • Available answer definitions
  • Amplitude device ID
  • current group ID
  • current step ID
  • current step index
  • current step URL
  • expected redirect url
  • flow label
  • Formsort environment
  • host
  • is Android?
  • is iOS?
  • is Mac OS?
  • is mobile
  • is returning responder
  • is Windows?
  • Jornaya lead ID
  • previous step url
  • referrer
  • responder UUID
  • session UUID
  • Trusted Form certificate URL
  • user agent
  • variant label
  • variant revision UUID

Was this helpful?

  1. Response Data Collection & Management
  2. Schema (variables)

System Library variables

Built-in answers about the responder's context and state.

PreviousAPI lookupsNextOrphaned variables

Last updated 23 hours ago

Was this helpful?

Overview of the System Library

System Library variables allow access to built-in attributes about the responder's environment or context. They allow you to reach into the internals of Formsort, or the responder's browser, and pull out information that may be useful to you, like user device or OS, or the label of the variant the user is visiting.

Available answer definitions

Amplitude device ID

Sends the Amplitude device ID, if the device ID was set in the URL and the Amplitude integration is active with "Use device id from URL" enabled.

current group ID

current step ID

current step index

The index of the current step, which is the number automatically assigned to the step according to where it is in the flow (e.g. first step is step "0", second step is step "1", etc.). The step index cannot be manually set.

current step URL

The URL for the current step, including the page index (https://{flow-url}#1 for the first step of a page).

expected redirect url

Where is the user getting redirected?

Will be set even if not currently redirecting: this is where the responder would be redirected at any point in the flow.

When the flow is being finalized, this is the same as the URL they were finally redirected to.

flow label

The string label identifying the flow that was loaded.

Formsort environment

host

This variable will include the base flow url in the answer payload.

is Android?

Is the responder on an Android device?

Useful as a condition for displaying an Play Store link if you have an app.

is iOS?

Is the responder on an iOS device, such as an iPhone?

Useful as a condition for displaying an App Store link if you have an app.

is Mac OS?

Is the responder on Mac OS?

is mobile

Is the responder on a mobile device, regardless of manufacturer?

is returning responder

Has the responder been to this flow before?

is Windows?

Is the responder on Windows OS?

Jornaya lead ID

previous step url

The URL of the previous step, useful for back links.

referrer

The URL that form user arrived from, corresponding to document.referrer.

Take care with collecting the referrer: it may contain personally-identifying information, if the referring page puts user data in its own URL and does not have a Content Security Policy defined.

responder UUID

session UUID

The UUID of the session, unique for every time a flow is loaded. Reloading the browser or navigating back to the page will create a new UUID.

Trusted Form certificate URL

user agent

Navigator user agent, meaning the browser the responder is using. Includes version number.

variant label

The string label identifying the variant that was loaded.

variant revision UUID

The UUID of the variant revision that was loaded for the responder.


If you have any suggestions for our System Library chat us in Intercom!

Any variables added here will automatically be sent along with your answers to any integrations/configurations you have set up, and do not need to be added in-flow in any way. They can, of course, be templated using , or used in statements at your discretion.

The ID of the current the user is in (falling back to the Group Index if a Group ID has not been set).

The ID of the current step (falling back to the current step index if an ID is not set). The is useful to include if using any analytics integrations, in order to analyze step-level performance. This id can be manually set in the Step Settings.

If "Use step ID instead of index" is enabled in , the current step URL will instead look like https://{flow-url}#step-id.

Which is the responder in?

The Jornaya lead ID. Will only be set if you are using the in the active environment.

May be undefined if the user navigated directly to the flow, or if the referring page does not send the referrer per their .

The of the responder.

The URL of the Trusted Form certificate issued for the session. Read more about the Trusted Form integration .

⚙️
variable templating
conditional logic
Group
environment
Jornaya integration
Content Security Policy
responder uuid
here
System Library can be found in any variant, under Variables -> System Library
Variant Settings
Step ID