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:
as you can see in my attachment (response),after first success event both events will be fired regardless of what is returned value.
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.
Hi,
Please post a screenshot of your events setup!
Best regards
Please post a screenshot of your events setup!
Best regards
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.
i already attached success and fail event screenshots in my attachment.
This topic is locked and no more replies can be posted.