Skip to main content

Lookup List

Select multiple source records in an approval form and map their values to rows in a sub-list.

Use Lookup List on an approval form to select several records and fill one sub-list row per selection. In a purchase order, select products from the product catalog. The sub-list can receive the product name, category and unit price. Then enter quantities and check calculated line totals.

For a single selection with values filled into form fields, see Lookup.


Definitions

  • Item ID

The unique ID of a source record. The Lookup List control stores selected record IDs in its associated variable.

  • Data Source

The data list that supplies candidate records. It can be in the current application or in another application that users have permission to access.

  • Associated List

The sub-list on the approval form that receives a row for each selected source record.


How to add a Lookup List field

  1. Add a SubList called Selected products to the approval form, with product, category, unit price, quantity, and line total columns.

  2. From the controls panel, drag Lookup List into a section or container. Give the selection button a short label such as Select products.


Basic of the Lookup List field

  1. In Content → Basic, set the title and check the associated variable. A new Lookup List has a default variable. You can edit its name and ID, or bind the control to an existing variable.

  2. Select the application and the Products list. When using another application, verify the intended user can access the candidate records.

  3. Use Data Filters to include active products. Set Primary Order to category and Secondary Order to product name.


Appearance of the Lookup List field

  1. Set the picker button’s Text, Tooltip, alignment, size, style and icon. Button styles include Default, Primary, Secondary, Tertiary, Solid border and Dashed border.

  2. Set Max Selection and use Display Field for a recognizable label, such as the product name. Open Additional Fields to choose which fields users see in the picker.

  3. Choose Selected products as the Associated List. Map product name, category, and unit price from the source record to the corresponding target columns. Leave quantity for the form user and calculate line total in the target list.

  4. Use Display selected items to show the selected records near the button. When the title is shown, set its layout and width. Configure comments and dynamic display rules as needed.

Lookup List settings with Max Selection, Display Field, Additional Fields, and Display selected items.


Validation of the Lookup List field

  • Turn on Readonly to display existing selections without editing.

  • Turn on Required when users must select at least one record.

  • Use custom validation for additional rules and test an input that triggers each error message.


Action call of the Lookup List field

In Content → Action, choose a Value Changed action. It can run when the Lookup List selection changes. After configuring the form action, test the first selection, replacing it, and clearing it.


Style the Lookup list control

Field

  • Picker button. Set margin, padding and typography. Adjust text, background, border, radius and shadow for normal, hover and click states.

  • Selected items. With Display selected items enabled, set margins, padding and styling for the normal and hover states.

  • Error message. Set typography and text color, then check readability in preview.

Style of title

Set the Title of field controls that are applicable to this control.


Advanced Settings

Use the control’s advanced options for layout and visibility.

Verify the selected rows

  1. Select two test products. Check that the form adds two rows and copies the name, category and unit price from each source record.

  2. Change a quantity and check the line total. Test the selection limit, cancellation, and submitting after clearing the selection.

  3. With the intended user role, save and reopen a test form to verify candidate access and saved lines.


​

Did this answer your question?