Hello,
I'm still trying to get familiar with CF5 and have a question about why something is happening.
The DB Read condition is written like this:
When I type in an ID number that is in the db the debugger shows this:
If I type in a an ID number that is not in the db, the debugger shows this:
It makes no difference whether I have the debugger before or after the DB Reader.
So my question is this, if the barcode entered (which is an ID number) is not in the db, why doesn't the debugger at least show the form information since that information is independent of what is in the db?
I hope this question makes some sense. I'm trying to better understand what's happening and why.
Thanks for any explanation.
I'm still trying to get familiar with CF5 and have a question about why something is happening.
The DB Read condition is written like this:
<?php
$barcode = $form->data['barcode']; (barcode is the form id and name of the form input)
return array( 'bi_number' => $barcode );
?>
When I type in an ID number that is in the db the debugger shows this:
Array
(
[chronoform] => staffid
[event] => Page2
[barcode] => bi01d35
[bi_number] => bi01d35
[name] => My Name
)
If I type in a an ID number that is not in the db, the debugger shows this:
Array
(
)
It makes no difference whether I have the debugger before or after the DB Reader.
So my question is this, if the barcode entered (which is an ID number) is not in the db, why doesn't the debugger at least show the form information since that information is independent of what is in the db?
I hope this question makes some sense. I'm trying to better understand what's happening and why.
Thanks for any explanation.