eg add SearchFields "City" and "Account_name" in Leads-Popup:
change :\modules\Leads\Popup_picker.html
PHP Code:
<form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="dataLabel" nowrap="nowrap">{MOD.LBL_FIRST_NAME}</td>
<td class="dataField"><input type="text" size="10" name="first_name" class="dataField" value="{FIRST_NAME}" /></td>
<td class="dataLabel" nowrap="nowrap">{MOD.LBL_LAST_NAME}</td>
<td class="dataField"><input type="text" size="10" name="last_name" class="dataField" value="{LAST_NAME}" /></td>
.....
<input type="hidden" name="mode" value="{MULTI_SELECT}" />
</td>
</tr>
<!-- Add the following for ACCOUNT_NAME / CITY -->
<tr>
<td class="dataLabel" nowrap="nowrap">{MOD.LBL_ACCOUNT_NAME}</td>
<td class="dataField"><input type="text" size="10" name="account_name" class="dataField" value="{ACCOUNT_NAME}" /></td>
<td class="dataLabel" nowrap="nowrap">{MOD.LBL_CITY}</td>
<td class="dataField"><input type="text" size="10" name="address_city" class="dataField" value="{ADDRESS_CITY}" /></td>
</tr>
then change :\modules\Leads\metadata\popupdefs.php to
PHP Code:
'whereClauses' =>
array('first_name' => 'leads.first_name',
'last_name' => 'leads.last_name',
'lead_source' => 'leads.lead_source',
'status' => 'leads.status',
'account_name' => 'leads.account_name', //added
'address_city' => 'leads.primary_address_city' //added
),
'selectDoms' =>
array('LEAD_SOURCE_OPTIONS' =>
array('dom' => 'lead_source_dom', 'searchInput' => 'lead_source'),
'STATUS_OPTIONS' =>
array('dom' => 'lead_status_dom', 'searchInput' => 'status')
),
'searchInputs' =>
array('first_name', 'last_name', 'lead_source', 'status', 'account_name', 'address_city' ), //added account_name and adress_city
And now it should work
Bookmarks