Nov 19th, 2009, 2:19 PM
I've created a multi-page for for an event registration, and I want to force certain values on page 2 based on what the user inputs on page 1.
Example: On page 1, I have a drop-down where they can select their title. On page 2, I want to force them to register for certain breakout classes (using radio buttons).
Is there any issue with doing the following:
if ($fields["title"] == "District Manager")
{
$fields["breakout_1"] = "District Manager Session";
$fields["breakout_2"] = "District Manager Session";
};
I was using javascript to set the radio button to "checked", but thought this might work better.
I'm hiding the other breakouts via css, using the same technique as above.
Any comments would be appreciated.
Thanks,
Glen
Example: On page 1, I have a drop-down where they can select their title. On page 2, I want to force them to register for certain breakout classes (using radio buttons).
Is there any issue with doing the following:
if ($fields["title"] == "District Manager")
{
$fields["breakout_1"] = "District Manager Session";
$fields["breakout_2"] = "District Manager Session";
};
I was using javascript to set the radio button to "checked", but thought this might work better.
I'm hiding the other breakouts via css, using the same technique as above.
Any comments would be appreciated.
Thanks,
Glen