Hi Max,
I believe you’re the only one who can clarify the following for now:
ChronoForms 8 provides two ways to add PHP code to a table column field:
- In the "blue lines" section below the table name.
- Using Behaviours → Output.
My question is: How can I access table row data?
In CF6, the syntax was: $this->get('table_name.row.Model.field_name');
In Behaviours → Output, I found that this syntax works: $row["field_name"]
However, this does not work in the "blue lines" section.
Could you please clarify:
- What is the best approach to execute PHP code in a table row column field?
- What is the correct syntax to retrieve data from other columns in the same row to use that data in PHP code?
Thanks,
Elita
Hi Elita
1- just use a PHP action in the blue sections (lines)
2- without PHP: {var:row.column_name}
and in PHP:
$this->get("row.column_name")
You need to login to be able to post a reply.