Clear Drop Downs

O

Ouaes Jamali

i am developing infopath form using visual studio tools for office 2003.I
have two drop downs in a infopath form. The first drop down contains the car
manufacturers names and the second drop down contains the cars made by each
company.

Drop down lstManufacturers contains the following names

<Select...>
Ford
Toyota
GM
Honda

When the users select "Ford" it drop down lstCars shows
Ford 150
Mustang-GT
Ford 250
Ford 350
Taurus

when the users select "Honda" the lst Cars shows
Civic
Accord
RAVA

When the users select the "Select..." item on the lst Maufacturers drop
down, i want to remove all the items from the lstCars dropdown.

How do i do this. I have been able to clear the selected value from the lst
Cars drop down but have not been able to remove the items from the drop down.

Any help will be greatly appreciated. also please let me know if you need
anything else from my side to resolve this issue.

-Ouaes Jamali
 
O

Ouaes Jamali

Shailaja,
Thank you very much for reply. Yes i want to display the values in the 2nd
drop down based on the value selected in the 1st drop down. I have got that
part working properly.

What i have not been able to resolve is that when the users select "None" in
the 1st drop down, then the second drop down should be cleared of all the
values. If i could get this part done then that would be great.

Thanks

-Jamali
 
G

Greg Collins [InfoPath MVP]

Add a rule (with no condition) to your first drop-down list box which clears the value in the field to which your second drop-down list box is bound.

--
Greg Collins [InfoPath MVP]
Visit Brain Trove (http://www.BrainTrove.com)
Visit InfoPath Dev (http://www.InfoPathDev.com)


Shailaja,
Thank you very much for reply. Yes i want to display the values in the 2nd
drop down based on the value selected in the 1st drop down. I have got that
part working properly.

What i have not been able to resolve is that when the users select "None" in
the 1st drop down, then the second drop down should be cleared of all the
values. If i could get this part done then that would be great.

Thanks

-Jamali
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top