SuiteCRM Customizations

Hi , I need one customization help!

I have two modules dealer and distibutor ,
having many-to-many relationship between them.

Another module consumer , having dealer relate field and distributor relate field.

I want upgrade-safe customization , when in consumer editview , after seleting dealer , the distribuor relate field popup search and selection will show only those distributor that are related with the selected dealer.

How to implement this?

Try some results from here

https://www.google.pt/search?q=sugarcrm+6.5+relate+dropdown

watch out, if Google takes you to pages about SugarCRM above version 6.5, don’t try to follow those.

It’s not a relate dropdown question, it’s about two relate fields in one module , and these relate fields modules have many-to-many relationship with each other.
My question is to customize the relate field popup search filters based on above mentioned scenario.
Thanks!

The basic structure applies: you need to customize a view; you need to inject some javascript so that your code is able to react to events in a dropdown.

After you get that part working, it’s really just a matter of detail what you need to do next with the other dropdown.