How to retrieve data in var list_table?

Retrieve data from a list_table with a {data:model} source in ChronoForms 7.

Overview

The issue occurs because the traditional CF6 syntax for accessing row data does not work when the data source is {data:model}.
In CF7, simply use {var:id} to access row values. For conditional logic, use the Run conditions feature on a Reference view element placed in the list table column, eliminating the need for custom PHP code.

Answered
ChronoForms v7
te tempus 17 Dec, 2020
Hi, please, explain.

How to retrieve list_table data for some view in table cell, if data source is {data:model}?
Traditional for CF6 {var:list_table_n.row.id} does not work in this case
te tempus 17 Dec, 2020
Finally I discovered

In CF7 enough to use just {var:id} in such case
Max_admin Max_admin 17 Dec, 2020
1 Likes
it depends on your data source, since your source is {data:model} then it works the way you noted!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
te tempus 25 Jan, 2021
Let me ask another question for this situation

If I would like to make some conditional php logic for showing table_list results
How to get in-row field value?

I mean <?php $this->data['field_name']; ?>, but for list_table row id, for example.
te tempus 25 Jan, 2021
Answer
Ha!

Figured out that CF7 has Run conditions.

I just put some reference views in new page of the form and put Reference view element into List table column area, set Run conditions and it works.
No coding, like before.

CF7 is 100% AWESOME!
This topic is locked and no more replies can be posted.