Read data found or not found

Check if a database record exists in ChronoForms.

Overview

The issue occurs when using a direct PHP check that incorrectly returns null even when a record is found.
Enable the 'run events' option in the read data action to properly trigger the data retrieval and allow accurate existence checks.

Answered
ChronoForms v8
Pk Pkoll 05 Jan, 2025

Hi Max,

How can I check if a database record is found or not. In CF 7 it is in the read data option.

I have tried it in a PHP file with &this->data('read_data8.returned') == Null{echo message;} this works when the record is not found 

But when the record s found this gives the same result!

Is there a solution for this just like CF7

Greetings

Paul

Pk Pkoll 05 Jan, 2025
Answer
1 Likes

Hi max,

I found it. I have to use run events so the problem is solved!

Thanks

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