How to get Read Data results in PHP

CDLMQSE 1d ago

Hi,

I'd like to display data from a `read data` action using a PHP action, mainly because some of the values ​​are null and this changes the layout. I'm new to Chronoforms 8 and would appreciate some help with the method and syntax.

Thanks

Max_admin 20h ago
Answer

Hi

For this specific issue you can use the COALESCE function in the Fields behavior:

How to get Read Data results in PHP image 1

this will return "Anonymous" when the name column has NULL

if you want to process this with PHP then you can get the read value(s) using:

$this->get("read_data19")

if you "return" value from the PHP action then they will be available under {var:php_name}

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.