Page 1 of 1

Processmaker Triggers

Posted: Tue Jul 27, 2021 8:06 am
by youness
How can i console log data from triggers , i used a simple PHP log but for some reason it doesn't work on triggers . is there a special way of doing it ?

Re: Processmaker Triggers

Posted: Sat Apr 02, 2022 4:12 am
by marceloayllon
Hello youness ,

You cannot natively use console.log to check PHP code and it would not work in triggers.

but with a hack :
$output = $data;
if (is_array($output))
$output = implode(',', $output);
echo "<script>console.log('Debug Objects: " . $output . "' );</script>";

can show you the values.