Event Switcher not working as it should be

How to prevent ChronoForms Event Switcher from firing all events after the first success.

Overview

The issue occurs because the Event Switcher continues to trigger both success and fail events after the initial success return, regardless of subsequent return values.
To resolve this, avoid using the Event Switcher for this logic and implement the filtering and database save operations directly using custom PHP code within the form events.

Answered
ChronoForms v6
bl 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 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.
bl 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.