I have a radio button with 2 options on page 1 of a multi form
add=Add (Ignores year)
edit=Edit (Year above)
page 2 has a custom code (just to check)
which works fine and shows add or edit as required and for edit reads the appropriate record from the DB
But the event switcher never triggers the add event, only the edit event
I have tried "add" instead of 'add' which has no effect. What am I doing wrong.
add=Add (Ignores year)
edit=Edit (Year above)
page 2 has a custom code (just to check)
<p>Form <?php echo $form->data["addedit"]; ?> --</p>
which works fine and shows add or edit as required and for edit reads the appropriate record from the DB
But the event switcher never triggers the add event, only the edit event
<?php
if ($form->data["addedit"] == 'add') {
return "add";
} else {
return "edit";
}
?>
I have tried "add" instead of 'add' which has no effect. What am I doing wrong.