core2-jvm (latest)
core2-jvm (latest)core-jvm
  • Home
  • Features
  • Spec
  • Guides
  • Sandbox
  • Step Studio
  • Step
    • Action
    • External
    • Help
    • Link Handler
    • Navigation
    • Persist Async
    • Polling
    • Refresh On Change
    • Schema On Change
    • Step Error
    • Suggestions
    • Summary
    • Toolbar
    • Upload
    • Validate Async
    • Schema
    • All Of Schema
    • Array Schema
    • Blob Schema
    • Boolean Schema
    • Const Schema
    • Integer Schema
    • Number Schema
    • Object Schema
    • One Of Schema
    • String Schema
    • Layout
    • Alert Layout
    • Box Layout
    • Button Layout
    • Columns Layout
    • Decision Layout
    • Divider Layout
    • Form Layout
    • Heading Layout
    • Image Layout
    • Instructions Layout
    • List Layout
    • Loading Indicator Layout
    • Markdown Layout
    • Media Layout
    • Modal Layout
    • Paragraph Layout
    • Progress Layout
    • Review Layout
    • Search Layout
    • Section Layout
    • Status List Layout
    • Tabs Layout
    • Upsell Layout
    • Behavior
    • Action Behavior
    • Copy Behavior
    • Dismiss Behavior
    • Link Behavior
    • Modal Behavior
    • Refresh Behavior
    • Subflow Behavior
    • Subflow
    • Dynamic Launch Config
    • Launch Config
    • Modal Presentation
    • Native Launch Config
    • Presentation
    • Push Presentation
    • Action Response Body
    • Error Response Body
    • Flow Response
    • Modal Response Body
    • No Op Response Body
    • Search Initial Layout Config
    • Search Initial Results Config
    • Search Initial State
    • Search Layout Response Body
    • Search Response
    • Search Response Body
    • Search Result
    • Search Results Response Body
    • Subflow Response Body
    • Additional Info
    • Align
    • Autocapitalization Type
    • Autocomplete Token
    • Context
    • Icon
    • Image
    • Inline Alert
    • Media
    • Native Capabilities
    • Request
    • Size
    • Supporting Values
    • Control
    • Tag

Search Layout

Android - 8.25.0 iOS - 11539 Web - 2.5.0

Displays a search input field, which performs a search and returns a Search Result.

search {
    method = HttpMethod.GET
    url = "/companies"
    param = "search"
    title = "Company"
    emptyMessage = "No company found"
}

When to use

  • When there are a large number of options which cannot all be provided. For example, an address lookup.

When not to use

  • When there are a small number of options which could all be provided on the step, consider using a Decision Layout with filtering instead. For example, a list of countries.

Properties

PropertyTypeRequiredDescription
analyticsIdStringNoAn optional identifier to be used in analytics tracking.
controlStringNoSpecify a particular control to use to represent the layout. If the control is unknown, it will be ignored.
emptyMessageStringNoA markdown message which the client should display if the results array is empty.

hint

String

No

A suggestion to the user on how they can search, or what terms are searchable.

Android - 9.13.0 iOS - 9.12 Web - 5.7.0

initialState

SearchInitialState

No

Represents the initial state of a search, shown before the first query executes or when the query is empty. See Search Initial State.

Android - Unsupported iOS - 9.16 Web - 5.9.0

marginSizeNoThe vertical margin to apply after this component. Defaults to md.
methodStringYesThe HTTP method to use for the request.
paramStringYesThe name of the parameter to place the search term under. If the method is GET, this will be included as a query parameter, otherwise, this will be a property of the JSON object in the request body.

tags

Array<String>

No

An optional list of identifiers used to configure renderers.

Android - 8.131.0 iOS - 8.125 Web - 4.33.0

titleStringYesA title to be displayed as a label for the search field.
typeStringYesIt must be search.
urlStringYesThe URL for the request. Either absolute or relative to the base URL of the flow.

Controls

inline

Displays search results in a dropdown (Web only)

search {
    method = HttpMethod.GET
    url = "/companies"
    param = "search"
    title = "Company"
    emptyMessage = "No company found"
    control = Control.Layout.Search.INLINE
}