AnsweredAssumed Answered

Dynamic Dependent Drop Down Value

Question asked by Subhankar Das on Aug 28, 2015
Latest reply on Sep 1, 2015 by Subhankar Das
Hi,
I'm using SugarCRM 7.6. I have two drop downs One is Manufacturer & another is Products. I want to populate products drop down depending on the value selected in Manufacturer drop down. What I did so far:

in record.js, in Oncahnge event calling a function which will fetch Product name using a custom function from API. I am able get back the list of products as an array like this 

6846bf46-fe0a-441a-bf47-f29fb737e650: "Flight Item 1"

I think this result I need to render/bind in the product drop down which I can't able achieve.

var url = app.api.buildURL("mymodule", "get_product", {}, param);       

app.api.call('GET', url, {}, {
            success: _.bind(function(data) {
                console.log(data); // It returns correct data set
               
                
            }, this),


Please suggest me how to do that

Outcomes