I have a form which I am using the Paypal Redirect Plugin.
I have a situation that if someone selects one value in a Radio Button Group I want it to bypass going to paypal and instead give a thank you message and a different email to the normal one.
Any advice would be appreciated.
I have a situation that if someone selects one value in a Radio Button Group I want it to bypass going to paypal and instead give a thank you message and a different email to the normal one.
Any advice would be appreciated.
Would be really helpful if I can get some help on this, it is really quite urgent.
Hi wmuckell and andy130,
I would use my Event Switcher [GH] action for this. It lets you use a little PHP to select between up to four different Events or continuing with the On Submit event.
Here I'd probably use one of the events to handle the Thank You plus Email and leave the PayPal option in the main On Submit event. Use the Show Stopper action to end the Thank You + Email sequence otherwise it will continue on into the PayPal actions.
Bob
I would use my Event Switcher [GH] action for this. It lets you use a little PHP to select between up to four different Events or continuing with the On Submit event.
Here I'd probably use one of the events to handle the Thank You plus Email and leave the PayPal option in the main On Submit event. Use the Show Stopper action to end the Thank You + Email sequence otherwise it will continue on into the PayPal actions.
Bob
Bob
The zip file cannot be openned on a mac? It says the structure is incorrect. ???
W
The zip file cannot be openned on a mac? It says the structure is incorrect. ???
W
Hi wmuckell,
Yes that seems to be a Mac bug nothing much that I can do about it :-(
But you don't need to unzip it, use the Install Action icon in the toolbar to install it on your site.
Bob
Yes that seems to be a Mac bug nothing much that I can do about it :-(
But you don't need to unzip it, use the Install Action icon in the toolbar to install it on your site.
Bob
I unzipped on a windows machine and uploaded to my site. But I don't see it in the Chronforms administrator? Am I doing something stupid here. It failed on trying install using Action installer, firstly taking ages to upload and install, but I think that is a server issue out of my control. How do I manually get it into the chronoforms
Hi wmuckell,
It's only a 4kb file so taking a long time to uplaod does suggest a server problem.
If you have it unzipped then use FTP to copy the event_switcher_gh folder into the administrator/components/com_chronoforms/form_actions folder.
There should be four files in the folder:
event_switcher_gh.ctp
event_switcher_gh.php
index.html
readme.txt
Only the first two are critical for the action to work.
Bob
It's only a 4kb file so taking a long time to uplaod does suggest a server problem.
If you have it unzipped then use FTP to copy the event_switcher_gh folder into the administrator/components/com_chronoforms/form_actions folder.
There should be four files in the folder:
event_switcher_gh.ctp
event_switcher_gh.php
index.html
readme.txt
Only the first two are critical for the action to work.
Bob
Ok sorted. On you page here (http://greyhead.net/how-to-docs/cfv4-event-switcher-gh-action)
It says to put in this folder: load_user_info_gh
Now I have put in event_switcher_gh it appears. Now got to figure out what to do with it.
It says to put in this folder: load_user_info_gh
Now I have put in event_switcher_gh it appears. Now got to figure out what to do with it.
Still bit of a problem.
Put this code in the event switch which I post for any correction
However when I add the events as seen in the screen prints and then save, the events within Event A and Event B disappear? Why is this
[attachment=1]Screen Shot 2012-04-12 at 12.48.27.png[/attachment]
[attachment=0]Screen Shot 2012-04-12 at 12.49.04.png[/attachment]
Put this code in the event switch which I post for any correction
<?php if ($form->data['partner']==""){
return "event_a";
}else{
return "event_b";
}
?>
However when I add the events as seen in the screen prints and then save, the events within Event A and Event B disappear? Why is this
[attachment=1]Screen Shot 2012-04-12 at 12.48.27.png[/attachment]
[attachment=0]Screen Shot 2012-04-12 at 12.49.04.png[/attachment]
Hi wmuckell,
Hmmm. I don't know. I updated the code earlier this week to fit in with some changes in the latest release of ChronoForms, maybe I broke something in the process and didn't spot it in my testing. I'll take a look later this afternoon.
Bob
Hmmm. I don't know. I updated the code earlier this week to fit in with some changes in the latest release of ChronoForms, maybe I broke something in the process and didn't spot it in my testing. I'll take a look later this afternoon.
Bob
Hi wmuckell,
Just an interim update. I can see the problem. It looks as though the events are being saved OK (I can see them in the database table) but aren't re-loading. I've asked Max to see if he can suggest where the problem might be as I can't see anything obvious in my code.
Bob
Just an interim update. I can see the problem. It looks as though the events are being saved OK (I can see them in the database table) but aren't re-loading. I've asked Max to see if he can suggest where the problem might be as I can't see anything obvious in my code.
Bob
Bob,
Thanks can you let me know via this forum when you have figured it out.
Ta
Warren
Thanks can you let me know via this forum when you have figured it out.
Ta
Warren
Hi Warren,
Max found my error - I had prettifed a few lines by adding some line-breaks and they needed to be in a particular layout - without the pretty line-breaks.
The copy on my site has been updated and I've emailed you a copy.
Apologies for the inconvenience.
Bob
Max found my error - I had prettifed a few lines by adding some line-breaks and they needed to be in a particular layout - without the pretty line-breaks.
The copy on my site has been updated and I've emailed you a copy.
Apologies for the inconvenience.
Bob
This topic is locked and no more replies can be posted.