I have a drop-down, and am trying to set up a function to redirect to an event based on the input from the drop-down using a simple PHP switch in Custom Code. However, shortcode like
is not working. I feel like this should be a trivial thing but have not found any solution in my search. Example code below;
{redirect:event_name}
is not working. I feel like this should be a trivial thing but have not found any solution in my search. Example code below;
<?php
$foo= $this->data['data1'];
switch ($foo) {
case 1: {redirect:event1};
break;
case 2: {redirect:event2};
break;
case 3: {redirect:event3};
break;
default: {redirect:index};
break;
}
?>
Shortcodes don't work in PHP, just for future reference.
This topic is locked and no more replies can be posted.