Populate form fields on select

Auto-filling a form for a chosen record

Use this pattern when a picker should load a selected record into a form.

The picker stores the selected row ID in app state, and the form reads that value back.

Build the picker

  1. Add a Form
  2. Add a Data provider
  3. Add an Options picker
  4. Set the picker to use the data provider
  5. Set the picker value to the row _id
  6. Save the selected _id into app state on change

Build the detail form

  1. Add a Form block
  2. Set the form type to View
  3. Point it at the same table
  4. Bind the Row ID to the saved state value

Why this works

The picker chooses the record and the form reads the matching row directly from the table.

Try it out


Did this page help you?