Hi.
I'm trying to do the some as Clovis but I don't know to do.
I have 2 radion button and I want 2 differents e-mail in each one. I'm using the ChronoForms5.
I mounted this structure in the setup:
On load: show form
On Submit: email1, email2, display message and event switcher. Put in the event switcher the same Clovis code, but I know how do this differents actions to each radio button. I don't receive any e-mail.
Diego
Hello, Calculus00
Thanks for the help, but still does not solve my problem.
Problem solve.
My mistake was in my if inside of the event switcher.
<?php
if($form->data["radio_button"] == "variavel"){
return "success";
}else{
return "fail";
}
thanks
No, you should use the correct values, so you should use 0 or "0" because this is value of the dropdown option:
if($form->data['pagamento'] == 0){
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
There is no reason for this to happen, please double check that the redirect action in the "offline" event is configured correctly ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I have redone the Redirect and it worked fine.
Thanks Max for your helpful hints!
Best Regards
i am trying something similar with no success. i cannot get the on offline and on online events inside of on submit, i want to run paypal redirect if online is selected. any ideas? :?
Hi dariegler,
How do you have the Event Switcher set up?
Bob
Hi dariegler,
How do you have the Event Switcher set up?
Bob
i have a yes no choice(checkbox group) in the design and then in the on submit, i have event switcher and i am checking the value of the payment variable and setting to true if Paypal and false if not. i t appears to ignore the event check.
Please try a "Radio" button group and post your code if it doesn't work!
If possible please post your radio boxes options too!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
the radio worked, but if i cancel the paypal transaction it does not return to the site. It returns a blank page. i have the url of the site in the return field.
http://www.owrc.net/index.php?option=com_chronoforms5&chronoform=febreservation
Hi dariegler,
How do you know exactly? What happens when you cancel?
Bob
i just get a blank screen. this is what is in the url at the return
https://www.paypal.com/us/cgi-bin/merchantpaymentweb?dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b08198d8562aa8a3da7ac30bbfba73b3e80dcc
what else can i give you?
Did you try the "return url" setting in the PayPal action ? I think the parameter name is "return_url".
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.