Skip to main content
Version: 3.1.0-Beta 🚧

Display Listview Record Details on a New Page

This guide explains how to display details of a selected record from a Listview component on a different page in ToolJet.

Build the App

  1. Drag a Listview component and setup other required components.
Build the app
  1. Add another page in the application.
Add a new page
  1. Setup the second page with required fields and components.
Setup the second page

Setting up Event Handlers

Add a new event handler to the Listview component with the following configurations:

  • Event: Record Clicked
  • Action: Set variable
  • Key: selectedEmp (Enter your desired variable name.)
  • Value:
    {{[{ 
    name: components.listview1.selectedRecord.text17.text,
    designation: components.listview1.selectedRecord.text15.text,
    department: components.listview1.selectedRecord.text14.text
    }]}}

This event will save the record value in the specified variable, which can be accessed on another page.

Add event handler to set variables

Create one more event and configure it with the following settings to switch the page when a record is clicked:

  • Event: Record Clicked
  • Action: Switch page
  • Page: Employee Details (Select your desired page from the dropdown.)

This event will switch the page whenever a record is clicked.

Add event handler to switch page

Displaying Info on Another Page

Now, you can reference the values stored in the variables from the previous page. For instance, you can set the default value of the Text input component using {{variables.selectedEmp[0].name}}.

Display data on the new page