> I believe this is then stored in the database
Did you check if it is there? You can select the database for contents in the menu in the special features.
> I tried your code, but I don't see the value of IV02_01 appear in the dataset under collected data
Add a warning to show if the entry is not found in the database.
if ($data) {
put('IV02_01', $dataC[0]);
put('IV03_01', $dataC[1]);
} else {
html('<p>No entry found for '.caseSerial().'</p>');
buttonHide();
}
In the example above, I store both values in one entry. So, if you have already stored values in separate entries, make sure to use your code - but so not only retrieve the value to a PHP variable
$cond = dbGet($keyc);
(note that this will return an array!) but also store the value to a dataset variable:
put('IV02_01', $cond[0]);