How to fill values for DropDown dependent on another DropDown selected value?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to fill values for DropDown dependent on another DropDown selected value?

sara
Hi,

I need to write a code in OFBIZ for fill the value in dropdown2 dependent on dropdown1 selected value .

For example:
I have 2 Drop-downs in a form like,
Product Category is Drop-down1
Product Name is Drop-down 2

If we selected particular product category that product name will be loaded in the automatically.


Please help me to do this.

Thanks
Saravanan


Reply | Threaded
Open this post in threaded view
|

Re: How to fill values for DropDown dependent on another DropDown selected value?

zca3
you can check in ftl files . similar type of code are available. Just populate the  product category in a list then go for populating the respective product in a sublist. but can not help you writing the exact code.
Reply | Threaded
Open this post in threaded view
|

Re: How to fill values for DropDown dependent on another DropDown selected value?

awdesh parihar
Hello Sara,

On change of Drop-down1(Product Category) , send a Ajax request. Ajax
request will fetch list of Product Name and  populate returned lint in
Drop-down 2 .

--
--
Thanks & Regards
Awdesh Singh Parihar
Hotwax Media
http://www.hotwaxmedia.com
[hidden email]
-------------------------------------------------
direct: +91 - 989.335.1789
Reply | Threaded
Open this post in threaded view
|

Re: How to fill values for DropDown dependent on another DropDown selected value?

Rishi Solanki
Refer getAssociatedStateList function in geoAutoCompleter.js, it get the
associated states on the basis of country. To see how it works go to
OnePageCheckout in ecommerce.
Better ask such questions on user list.

Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


On Wed, Feb 3, 2010 at 1:56 PM, Awdesh Parihar <[hidden email]>wrote:

> Hello Sara,
>
> On change of Drop-down1(Product Category) , send a Ajax request. Ajax
> request will fetch list of Product Name and  populate returned lint in
> Drop-down 2 .
>
> --
> --
> Thanks & Regards
> Awdesh Singh Parihar
> Hotwax Media
> http://www.hotwaxmedia.com
> [hidden email]
> -------------------------------------------------
> direct: +91 - 989.335.1789
>