grantdigital
posted Sep 7, 2020 at 05:48
I am testing out Chronoforms 7 and I trying to add PHP in a table to output some data calculated in PHP.
Using the same syntax as with Chronoforms 6 "$this->get('table.row.Model.field')" returns nothing. So I looked at the examples and it just used '{var:Model.field}' to display them but when I try "$this->get('Model.field')" I just get the data from first row. I also tried to get the key but always returned the 1st row.
In the screenshot the 'Format Date column is where I have the 'HTML field' with the PHP code, the first link is using the {var:XXX} syntax and 2nd line is trying to get from PHP. Why can't I get current row in PHP now?

In the screenshot the 'Format Date column is where I have the 'HTML field' with the PHP code, the first link is using the {var:XXX} syntax and 2nd line is trying to get from PHP. Why can't I get current row in PHP now?
