SmartBuilder > Help Documentation > Objects > Table

Create a Table Using Dynamic Text

A table with dynamic text can change depending on the learner’s actions. For example, it might display what a learner entered into a text field, or what they selected for a multiple choice answer.

  1. Add a table object to the page.
    Table Object
  2. The table can include combinations of static text and dynamic text. When any text is dynamic, the table must be populated using actions. You will need to create lists with items for each cell in each row. An example of a list with static text can be seen in the example below where the first row (column headings) contains static text.
    dynamic data in a table with lists
  3. Typically, you will store your dynamic text in variables. How you capture the text is up to you. For example, on a previous page in the lesson, you might have an input field where the learner typed some text. You would store this in a variable. When you’re ready to push this dynamic text into the table, add the variable(s) to the lists that you create for each row of the table. In the example below, the text in the middle column is dynamic.
    dynamic data in a table with lists continued
  4. The lists for each row are combined into a parent list which is pushed into a variable.
    action showing the use of lists to set table data
  5. Use the set Table.data action block to populate the table.
    set table data action block