Forums

Event Switcher not working as it should be

black_angel 22 Dec, 2017
im trying to use event switcher to filter empty value in array and save data to database.
but the problem is after the first return of 'success' every event in event switcher will be fired no matter what is returned.
here is custom php code:

$res=$this->get("loop_event29.row");
$event='fail';
if(strlen($res)>0){
   //echo "row :".$this->get("loop_event29.key");
   $event= 'success';
}
return $event;


as you can see in my attachment (response),after first success event both events will be fired regardless of what is returned value.
Max_admin 27 Dec, 2017
Hi,

Please post a screenshot of your events setup!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
black_angel 28 Dec, 2017
Answer
Hi,tnx for ther replay but i solved my problem by using php codes instead of event switcher.
i already attached success and fail event screenshots in my attachment.
This topic is locked and no more replies can be posted.