Custom Function Help Script

Custom Function Help Script

Hello, I have a question:

My business model is B2C, in the module accounts I store my business offices available.

The contacts are related to offices, by custom functions I need to make a script to do the following:

When I select a parameter of a drop down menu of the contact module I want to automatically assign me an office.

For example:

List of Office: Office 1 Office 2 Office 3 (Module account)

Pick Field list: volume (contact module)

Options Field:        100
                              200
                              300

When the "Volume" field is 200 I want you to automatically assign the "Office 1", when the "volume" field is 300 want to automatically assign the "Office 2" and finally when the "volume" field is 100 I want you automatically assigned to the "Office 3"

** Office 1 Office 2 and Office 3 accounts exist in the module "

I have enterprise edition.

Thanks and regard