Thanks Skipidar,
Unfortunately, these are all already set my in listview.php.
Also, I should reiterate that these fields are not "custom" in the Sugar_c sense and so defiined say.. in table accounts_cstm,
but rather have been hard coded into the accounts module itslef. (see below).
PHP Code:
if (isset($_REQUEST['address_postalcode'])) $address_postalcode = $_REQUEST['address_postalcode'];
// address_postalcode is OEM -- default Sugar code
if(isset($_REQUEST['active'])) $active = $_REQUEST['active'];
if(isset($_REQUEST['flag'])) $flag = $_REQUEST['flag'];
if(isset($_REQUEST['zone'])) $zone = $_REQUEST['zone'];
if(isset($_REQUEST['mao'])) $mao = $_REQUEST['mao'];// MAO stands for multi-agent-office
which, as stated above, all return search results just fine, it's just that the html inputs do not return populated in searchform.html.
As for address_postal code, I simply coppied the field from the "advanced search table" in searchform.html, to the basic search table" and just moments ago discovered that a search on postalcode from basic field does in fact return populated upon switching to the advanced search view. Digging in, I discovered that adding...
if (isset($address_postalcode)) $search_form->assign("ADDRESS_POSTALCODE", to_html($address_postalcode));
AFTER
if (!isset($_REQUEST['search_form']) || $_REQUEST['search_form'] != 'false') { ...
allows results in address_postalcode field to return pouplated after search in basic search table, however corrisponding lines of code for the remaining fields in question were already set there, and yet do not return populated in basic following a search so .... GRRRRRRRRR!
PHP Code:
if (!isset($_REQUEST['search_form']) || $_REQUEST['search_form'] != 'false') {
// Stick the form header out there.
$search_form=new XTemplate ('modules/Accounts/SearchForm.html');
$search_form->assign("MOD", $current_module_strings);
$search_form->assign("APP", $app_strings);
$search_form->assign("IMAGE_PATH", $image_path);
$search_form->assign("ADVANCED_SEARCH_PNG", get_image($image_path.'advanced_search','alt="'.$app_strings['LNK_ADVANCED_SEARCH'].'" border="0"'));
$search_form->assign("BASIC_SEARCH_PNG", get_image($image_path.'basic_search','alt="'.$app_strings['LNK_BASIC_SEARCH'].'" border="0"'));
$search_form->assign("JAVASCRIPT", get_clear_form_js());
if (isset($name)) $search_form->assign("NAME", to_html($name));
//adding the following, postalcode field returns populated upon search from basic field
if (isset($address_postalcode)) $search_form->assign("ADDRESS_POSTALCODE", to_html($address_postalcode));
//however these do not, and were already set upon adding the initially
if (isset($zone)) $search_form->assign("ZONE", to_html($zone));
if (isset($visits)) $search_form->assign("VISITS", to_html($visits));
if (isset($visit_by)) $search_form->assign("VISIT_BY", to_html($visit_by));
if (isset($flag)) $search_form->assign("FLAG", to_html($flag));
if (isset($active)) $search_form->assign("ACTIVE", to_html($active));
if (isset($mao)) $search_form->assign("MAO", to_html($mao));
Bookmarks