B
Bob Bedford
I've a form that use a combobox along with other fields. When the user
submit the form, many tests are done. If any test fails, then I show the
form again with previously entered values.
My problem: when I show back the form with previously entered values, I
can't set the entered value of the combobox. I've registered the value, but
how to go trough the value, and select the right one.
I'd like something like:
for each record in combobox
if record.value = savedvalue then
record.select
break;
end
It is possible with javascript. Please take in mind for your answer that
I'ven't worked so far with javascript.
my form's name is formSubmit
my combobox's name is City
Thanks for help.
BoB
submit the form, many tests are done. If any test fails, then I show the
form again with previously entered values.
My problem: when I show back the form with previously entered values, I
can't set the entered value of the combobox. I've registered the value, but
how to go trough the value, and select the right one.
I'd like something like:
for each record in combobox
if record.value = savedvalue then
record.select
break;
end
It is possible with javascript. Please take in mind for your answer that
I'ven't worked so far with javascript.
my form's name is formSubmit
my combobox's name is City
Thanks for help.
BoB