Combine Two Lists in One Listviewer


In response to this question from Jason, here’s a quick demo of how to concatenate two lists into a single ListViewer.

Here’s the remix link in case you want to experiment with this yourself:

1. Prepare your two lists

Your lists can contain anything you like, and the data can come from users/firebase/localDB/airtable - it’s completely up to you really.


2. Create your variables

In this example we’ll use

  1. A variable for the concatenated strings, called tasks
  2. A variable to keep track of where we are in our list, called index
  3. A variable to separate the first string from the second string, called delimiter


3. Create your concatenated list

Here’s a function the loops through the input lists and joins the second to the first, with the delimiter of your choice in the middle.

Note that we also use the to UPPERCASE block to further emphasise the difference between the task name and the task description

4. Display the list in a ListViewer



Text over Two Lines in List View