Documentation Index
Fetch the complete documentation index at: https://knowledge.goautonomous.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Stocklines (called subproducts in the platform) are a sub-product viewer built into each product line in the Flow cart. They let you attach a structured list of related items or data directly beneath a parent product, which users can view — and optionally select from — without leaving Flow.Use cases
Stocklines are flexible enough to cover several different scenarios: Stock split by characteristic — when a single product exists across multiple stock entries that differ by warehouse, batch, expiry date, or similar attributes. Instead of showing one undifferentiated line, stocklines surface each stock entry separately so users can see availability and choose where to fulfil from. Bill of materials — when a product is made up of component parts (e.g. a table composed of four legs, bolts, and a tabletop). Each component is a stockline under the parent product, giving users full visibility of what makes up the order line. Pricing variants — when processing quotes, stocklines can display a list of similar products or pricing options for a product, letting the user compare and select the most appropriate one. In all cases, stocklines act as a structured sub-product viewer attached to a parent line — the underlying concept is the same regardless of what data you’re showing.Selectable vs read-only stocklines
Stocklines can be configured in two modes: Selectable — users can check and uncheck individual stocklines in the dialog. A Select button applies their selection back to the parent product line. Use this when the user needs to actively choose which sub-items to include (e.g. selecting a warehouse, choosing a component, picking a pricing tier). Read-only — all stocklines are display-only. No checkboxes appear and users can only view the data. The dialog shows a Close button instead of a Select button. Use this when the sub-product data is informational only (e.g. showing bill-of-materials components that are always included, or displaying pricing history for reference). The selectable/read-only behaviour is controlled by thestatus field on each subproduct returned from your integration — selected, not_selected, or readonly.
Configuring stockline fields
Stockline fields are configured separately from the main product cart fields. Navigate to Administration > Company Settings > Field Manager, open a configuration, and find the Stocklines section. Each field you add to the Stocklines section has two visibility toggles in addition to the standard field properties:- Show in stockline view — controls whether the field appears in the inline numbered view (visible when the parent product row is expanded in the cart).
- Show in table view — controls whether the field appears as a column in the full stocklines dialog (opened via the layers icon on the product row).
Field properties
| Property | Description |
|---|---|
| Read only | Field is display-only. Users cannot edit the value. |
| Select only | For reference data fields — users can only pick from predefined options, not enter free text. |
| Show in stockline view | Field is visible in the inline expanded row. |
| Show in table view | Field is visible as a column in the stocklines dialog. |
Supported field types
Stockline fields support the same data types as regular cart fields:- Text — free-form string.
- Number — numeric value with formatting.
- Date — date value with a date picker in Flow.
- Boolean — rendered as a toggle switch.
- Email — comma-separated list of email addresses.
- Reference data — autocomplete lookup against a reference data set.
- Link — clickable URL rendered as a hyperlink.
What’s next
- Stock line selection in Flow — how users view and interact with stocklines when processing requests
- Back to Field Manager
- Dependent fields