LogoLogo
Back to studio
  • Formsort documentation
  • โฉQuickstart
    • ๐ŸŸขGet started with Formsort
    • ๐ŸŽCore concepts
    • โ„น๏ธQuestion and content reference
    • ๐Ÿ“•Key terms
    • ๐Ÿž๏ธCreate your first flow
    • ๐Ÿ“–Add content and collect answers
      • ๐ŸคณCapture demographic data
      • โ„น๏ธAdd informational content
      • ๐Ÿ” Review your variable schema
    • ๐ŸŽจCreate a theme
      • Set brand guidelines
    • ๐ŸคนPersonalize your flow
      • ๐ŸŒŸTemplate your variables
      • ๐Ÿง Add conditional logic
      • ๐Ÿ’ซUsing conditional logic with Calculated and API variables
      • ๐Ÿ”šEnd the flow
    • ๐Ÿ”€Set up integrations
    • ๐Ÿš€Go live
      • Auditing your flow for content, functionality, and design
    • ๐Ÿ’ผCommon use cases
      • ๐Ÿ’”Disqualify responders
      • ๐Ÿ—“๏ธAdd a scheduling option
      • ๐Ÿ“„Allow responders to read and accept your company policies
  • ๐Ÿ—๏ธBuilding flows
    • Flows and variants
      • Flow starts
    • Adding content
      • Groups
      • Steps
        • Settings
        • Logic
        • Style
      • Questions
        • General Settings
        • Style
        • Address
        • Comparison
        • Confirmation
        • Date
        • Date & Time
        • Email address
        • File upload
        • Grid choice
        • Iframe
        • Image upload
        • Number
        • Payment
        • Phone number
        • Postal code
        • Question group
        • Region
        • Select
          • Providing choices via API or calculation
        • Signature
        • SSN
        • Text questions
        • Yes/No
      • Content
        • General Settings
        • Statement
        • Image
        • Video
        • Next button
        • Divider
        • Map
      • Endings
      • Using markdown
      • Using variable templating
        • Template formatting functions
      • Copy-pasting form content
      • Content library
    • Conditions and logic
      • Logical operator reference
      • Advanced logic
    • Variables (answers)
      • Variables from questions
      • Externally provided variables
      • Calculated variables
      • API lookups
      • System Library variables
      • Orphaned variables
    • Schemas
      • JSON Schemas
      • Validating flow schemas
    • Redirects
    • Styling and themes
      • CSS Reference
      • Overriding theme styling
      • Custom CSS overrides
      • Content area
      • Animations and transitions
      • Form Layout
      • Typography
        • Adobe Fonts
        • Hosting custom fonts
      • Color variables
      • Dimension variables
      • Question containers
      • Assets
      • Form Buttons
        • Select buttons
      • Inputs and dropdowns
      • Checkmarks
      • Tables
      • Sliders
      • Divider lines
      • Progress bar
      • Comparison cards
    • Variant settings
      • Form behavior for returning responders
      • Group ranking API
    • Publishing and versions
      • Preview window
      • Deploying
      • History
  • ๐Ÿ’พHandling data
    • Philosophy and data retention policy
    • Viewing form answers
    • Responder UUIDs
    • Environments
      • Loading different environments
    • Passing data in
      • URL parameters
      • POST body
      • Embed query parameters
    • Custom validators
    • Form answers and events
      • Analytics events
      • Signed requests
      • Event payload shape
      • Submission frequencies
      • Runtime error reporting
      • Admin API
      • Flow content data format
    • 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
  • ๐Ÿ“บGoing live
    • Custom domains
    • Built-in analytics
    • Embedding
      • Web-Embed API
        • React-embed
      • Adding authentication
      • Embedding forms in iOS and Android
      • Setting up a dev environment
    • Split testing
    • Preflight checklist
  • ๐ŸขTeams
    • Accounts
      • Roles and permissions
    • Events subscriptions
    • Workspace domain detection
Powered by GitBook
On this page
  • Setting answers
  • Setting date answers
  • Setting array answers
  • Setting object answers
  • Setting a responder UUID
  • Privacy

Was this helpful?

  1. Handling data
  2. Passing data in

URL parameters

Passing answers directly in the URL.

PreviousPassing data inNextPOST body

Last updated 6 months ago

Was this helpful?

Formsort forms are able to accept incoming data by passing that data in as URL query parameters. This can be leveraged to:

  • pre-fill answers to questions in your form; or,

  • pass data to an application that the user will be to, using .

Setting answers

If your answer schema has a variable first_name, you could set a value for first_name by appending ?first_name=Olivia to the URL of the flow. If you're passing multiple answers at once, separate the answers with an ampersand, for example:

?first_name=Olivia&last_name=Gretel.

For data you'd like available within the flow's answers (such as utm_source) but don't correspond to in-form questions, you'll need to create an to capture the incoming value.

Answers passed with the wrong type, or to non-existent variable names, are ignored when loading the flow.

Check the javascript console if you are having problems ingesting answers - a warning will be present if URL parameters don't match known answers, or the value you're providing is invalid.

Setting date answers

Date answers should be passed in YYYY-MM-DD format. For example, if you want to pass in the appointment_date answer "Apr 25 2023", append ?appointment_date=2023-04-25 to the flow URL.

Setting array answers

If the answer variable is of array type (for example, an answer labeled countries coming from a question that allows multiple choices), you can pre-populate by creating a URL like following:

?countries[]=US&countries[]=CA

The above results in the countries answer being set to ["US", "CA"].

Setting object answers

?mailing_address[postal_code]=12571&mailing_address[city]=Brooklyn

The above results in the mailing_address answer being set to { "postal_code": "12571", "city": "Brooklyn" }.

Setting a responder UUID

Setting a responder UUID is not required, since Formsort automatically generates one at the responder's first session.

https://<FLOW-URL>?responderUuid=123e4567-e89b-12d3-a456-426614174000.

<input name="responderUuid" value="123e4567-e89b-12d3-a456-426614174000" />.

Manually setting responderUuid is useful for two reasons:

  • You already have an identifier generated for a particular user, like an account UUID or session UUID from your own application. Additionally, any responderUUID set in Formsort (manually or automatically) can be passed along with the user when being redirected out of the flow.

Privacy

The contents of URLs are visible in the URL bars of browsers, and are often logged by third-party analytics that you might load within Formsort.

To prevent unnecessary answer exposure, we strip the URL of any properly ingested answers when your flow loads.

If an answer variable is of object type (for example, an question's answer labelled mailing_address), you can set parts of that object using a URL like the following:

If you would like to provide your own UUID to use as an identifier, you can set the using a URL like the following:

Or, you may provide it within a :

You would like to force-load a session that is tied to a particular responder UUID. Keep in mind, force-loading a session with the responder UUID will not work if "start each session as a new responder" is enabled in the , or if the user session has already been finalized.

The responderUuid must be a - a 36 character hexadecimal string hyphenated with the pattern8-4-4-4-12, for example 123e4567-e89b-12d3-a456-426614174000.

For extra security, you should consider into the flow instead.

๐Ÿ’พ
redirected
external variables
external variable
select
address
responder UUID
POST body
UUID
POSTing data
variant settings