Hi,
I am following the guideline from this thread: http://www.chronoengine.com/forums/posts/f5/t96748.html
I use a custom server side validation with this code
I am following the guideline from this thread: http://www.chronoengine.com/forums/posts/f5/t96748.html
I use a custom server side validation with this code
<?php
$db = JFactory::getDBO();
$query = "
SELECT * FROM `jos_chronoforms_data_aanvraag_parking`
(also tried: SELECT `cf_id` FROM `jos_chronoforms_data_aanvraag_parking`và
WHERE `stamnr` = '{$form->data['stamnr']}' ;
";
$db->setQuery($query);
$options = $db->loadAssocList();
if ($options) {
return 'fail';
}else{
return 'success';
}
?>
the db table is empty so it shouldn't find anything an perform the OnFail actions, how ever the validation keeps going to the OnSuccess actions. Any suggestions? screenshot of events attached.