Skip to content
MyAppBuilder
StableGuide

Query parameters

Query parameters are optional values carried in the address after a question mark: /customers?status=new&tab=invoices. Unlike route parameters they are never required, do not change which page opens, and are ideal for passing a filter, a preselected tab or a "came from" hint. You

Query parameters are optional values carried in the address after a question mark: /customers?status=new&tab=invoices. Unlike route parameters they are never required, do not change which page opens, and are ideal for passing a filter, a preselected tab or a "came from" hint. You declare the keys a page understands, pass values in navigations, and read them with the data picker.

When to use

  • Pre-filter a list: Dashboard → Open jobs passes status=open to the Jobs page.
  • Preselect something: tab=invoices on a customer page.
  • Keep context after a form: created=1 to show a success note.

Use a route parameter instead when the page cannot work without the value (a detail page).

1. Declare the keys on the page

In the Storyboard, select the page and add the key under Query parameters (letters, digits and underscores; it must not start with a digit). The same list is in Page settings → General → Query parameters. Declaring a key makes it appear in the data picker under Query parameters.

2. Pass values in a navigation

  • Edge inspector: under Query parameters, type a key, click Add, then set its value (fixed text or a dynamic value such as Event › record › status). Remove a pair with the trash icon.
  • Connect pages dialog: the same list while creating the navigation.
  • Build → Actions: the Go to page action has the same query list.

Empty values are left out of the address. Query parameters are only available for Go to page targets, not for modals and drawers (pass route parameters to those instead).

3. Read the value on the target page

  • In a query filter: Status is Query parameters › status. If the parameter is absent the filter is skipped, so the list shows everything — exactly what you want for an optional filter.
  • In a visibility rule: show a banner only when Query parameters › created is not empty.
  • In text: {{query.status}} inside a template.

Example

Example
Dashboard: KPI "Open jobs" (onClick) ──Go to page──▶ Jobs
    Query parameters:  status = "open"
Jobs page:  Table of Jobs, filter  Status is Query parameters › status
Address:    /jobs?status=open

Common mistakes

  • Using a query parameter for a detail page: without the value the page is meaningless; use /:id.
  • Forgetting to declare the key: the value is still in the address, but the picker will not offer it and the Storyboard will not know the page reads it.
  • Expecting query parameters to survive a modal: modals do not change the address; use route parameters or state.

Related

Was this helpful?