SugarCRM If you want pass data in sub panel quick create

SugarCRM If you want pass data in sub panel quick create

September 29, 2012 PHP SugarCRM Uncategorized 0

include/generic/SugarWidgets/SugarWidgetSubPanelTopCreateAccountNameButton.php

 

Add line,

 

$additionalFormFields = array();

              if(isset($defines['focus']->billing_address_street))

                      $additionalFormFields['primary_address_street'] = $defines['focus']->billing_address_street;

              if(isset($defines['focus']->billing_address_city))

                      $additionalFormFields['primary_address_city'] = $defines['focus']->billing_address_city;                                                         

              if(isset($defines['focus']->billing_address_state))

                      $additionalFormFields['primary_address_state'] = $defines['focus']->billing_address_state;

              if(isset($defines['focus']->billing_address_country))

                      $additionalFormFields['primary_address_country'] = $defines['focus']->billing_address_country;

              if(isset($defines['focus']->billing_address_postalcode))

                      $additionalFormFields['primary_address_postalcode'] = $defines['focus']->billing_address_postalcode;

              if(isset($defines['focus']->phone_office))

                      $additionalFormFields['phone_work'] = $defines['focus']->phone_office;

              if(isset($defines['focus']->phone_alternate))

                      $additionalFormFields['phone_other'] = $defines['focus']->phone_alternate;

 

Leave a Reply

Your email address will not be published. Required fields are marked *