Hi Manuel;
Thanks for replying;
This is where is think the error is... See the onchange line...
<td><select name="TheaterName"
onchange="p_PreformanceDay_switch_group(this.form
['TheaterName'].options[this.form
['TheaterName'].selectedIndex].value,this.form)
p_PreformanceDayNut_switch_group(this.form['TheaterName'].options
[this.form['TheaterName'].selectedIndex].value,this.form)"
id="TheaterName" size="1">
<option value="" selected="selected">Please choose a Theater</option>
<option value="BrowardCenter">Broward Center (Fort Lauderdale)
</option>
<option value="CarnivalCenter">Carnival Center (Miami)</option>
<option value="KravisCenter">Kravis Center (West Palm Beach)</option>
</select></td>
<td>
In the onchange there are 2 selction box "PreformanceDay and
PreformanceDayNut" that need to populate based on the selection of
the "Theater Name".
$form->AddInput(array(
"TYPE"=>"select",
"NAME"=>"TheaterName",
"ID"=>"TheaterName",
"VALUE"=>"",
"SIZE"=>1,
"OPTIONS"=>$TheaterNames,
"ValidateAsNotEmpty"=>1,
"ValidateAsDifferentFromTextErrorMessage"=>"Please
choose a Theater.",
"ValidationErrorMessage"=>"Please choose a Theater.",
"LABEL"=>"Select <u>T</u>heater",
"ACCESSKEY"=>"T"
));
$form->AddInput(array(
"TYPE"=>"custom",
"NAME"=>"PreformanceDay",
"ID"=>"PreformanceDay",
"VALUE"=>"",
"SIZE"=>1,
"CustomClass"=>"form_linked_select_class",
"Groups"=>$PreformanceDays,
"LinkedInput"=>"TheaterName",
"AutoWidthLimit"=>0,
"AutoHeightLimit"=>1,
"ValidateAsNotEmpty"=>1,
"ValidateAsDifferentFromTextErrorMessage"=>"Please
choose a preformance day.",
"ValidationErrorMessage"=>"Please choose a
preformance day.",
"LABEL"=>"Select Pre<u>f</u>ormance Day",
"ACCESSKEY"=>"f"
));
Then I have an other AddInput for PreformanceDaysNut same as
PreformanceDays;
When I comment one of them out each one works good. This is why I
think the porblem is in the onchange line.
Thanks again,
Kurt
--- In forms-dev@yahoogroups.com, Manuel Lemos <mlemos@...> wrote:
>
> Hello,
>
> on 09/10/2007 10:34 AM kurt_leyba said the following:
> > Hello;
> >
> > I'm trying to use the linked selection box... I want to get 2
> > differnt selection boxes (Preformance time and Seating Section)
to
> > pupulate based on the selection of 1 selction box. (Preformance
> > Theater). I noticed that the javascript gets errors when more
then one
> > item is linked. Is there a way to solve this?
>
> Can you please provide a minimal example that exhibits the problem
so I
> can understand what is wrong?
>
> --
>
> Regards,
> Manuel Lemos
>
> Metastorage - Data object relational mapping layer generator
> http://www.metastorage.net/
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>