Forums

Chronoforms 8 succes fail in actions

studio16 15 Aug, 2023
Hi,

Any change om bringing back the succes/fail options in the actions settings?
In previous versions i could onlsy send mail or show message om db save succes.

Greetings
Max_admin 16 Aug, 2023
Do you want the db save to fail ? it was removed because most users would want the db save to succeed anyway
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
studio16 16 Aug, 2023
db was just an example, every action had a succes fail option.
Lets say you have a dynamic email to based on user enry.
A on fail would be convenient.
But if no one ever used the succes/fail option i can make a workaround, after all there always is ;-)
Max_admin 16 Aug, 2023
Answer
I mean it's not necessary in most situations, even if you have a dynamic email, it should not fail, you should test the email settings are valid.

But, you can still simulate the same functionality by using a PHP actions with "Events" behavior, check the variable result of the email action:

if(!$this->get("email_name")){
return "email_fail";
}

And do your fail action in the "email_fail" event
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
You need to login to be able to post a reply.