Hey Folks,

in my Custom Module i have an Contact and an Account Field.

After i selected an contact, i want the account field to be filled with the value of the account name of the chosen contact.

for that purpose i edited the editviewdefs.php:

PHP Code:
 array (
                            
'name' => 'contact_name',
                            
'displayParams' => array(
                                
'field_to_name_array' => array(
                                    
'id' => 'contact_id',
                                    
'name' => 'contact_name',
                                    
'account_id' => 'account_id',
                                    
'account_name' => 'account_name'
                                
),
                            ),
), 
but the problem is, after i selected an contact the following message box is shown:

You currently have values in your form for the Phone and Address fields. To overwrite these values with the phone/address of the Acccount that you selected, click OK. To keep the current values, click Cancel.

Contact: Bernd Werner

When i click okay,the 2 fields are correctly updated.

but how can i avoid the message??

i haven't found a solution yet!

can u help me??

regards steve
________________________________-
sugarversion: 5.1.0b,
win xp