I have installed Event Switcher and it shows up as Custom Action. I have dragged it onto my event and added the following code:
<?php
if ($form->data['PaymentType'] == 'Invoice') {
return 'event_a';
}elseif{($form->data['PaymentType'] == 'Credit Card')
return 'event_b';
}elseif{($form->data['PaymentType'] == '')
return 'event_c';
}
?>
I have hard coded an input field for PaymentType and made its value Invoice. I get the next item in my main event which is a Thanks message. It is as though the Event Switcher was not activated.
<?php
if ($form->data['PaymentType'] == 'Invoice') {
return 'event_a';
}elseif{($form->data['PaymentType'] == 'Credit Card')
return 'event_b';
}elseif{($form->data['PaymentType'] == '')
return 'event_c';
}
?>
I have hard coded an input field for PaymentType and made its value Invoice. I get the next item in my main event which is a Thanks message. It is as though the Event Switcher was not activated.