CF8 - Table - PHP access a field

Access a field within a ChronoForms table using PHP.

Overview

The issue is using an incorrect syntax to retrieve a field value from a table row.
To access the field, use the correct PHP syntax within the form's code. For a field named FIELD, use the specified method to get the value from the current row.

Answered
ChronoForms v8
rb rbock 03 Jun, 2024

Hello Max,

How can I access a field within the table (output) using PHP? 

$this-get("table.field")

I don't see any debug output either.

rb rbock 10 Jun, 2024

Ok, I found it in the example form...

rb rbock 14 Jun, 2024
Answer

$this->get("row.FIELD")

 or

{var:row.FIELD} // outside PHP

This topic is locked and no more replies can be posted.