I am adding a field to the Calls EditView to allow the Call to be associated with a Contact. What I'm trying to do is add a popup to select the Contact. For some reason whenever theis in the open_popup function the page will not display.Code:{"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"spoke_with_contact_id","user_name":"spoke_with_contact_name"}},
Does anyone have any idea why?
regards,
CS
from custom/modules/Calls/metadata/editviewdefs.php:
Code:array ( 'name' => 'spoke_with_contact_c', 'label' => 'LBL_SPOKE_WITH_CONTACT', 'customCode' => '<input type="hidden" name="spoke_with_contact_id" id="spoke_with_contact_id" /><input type="text" name="spoke_with_contact_name" id="spoke_with_contact_name" class="sqsEnabled yui-ac-input" size="" value="{$fields.spoke_with_contact_c.value}" autocomplete="off"/><span class="id-ff multiple"><button type="button" name="btn_parent_contact" id="btn_parent_contact" tabindex="102" title="Select" class="button firstChild" value="Select" onclick="open_popup("Contacts", 600, 400, "", true, false, {"call_back_function":"set_return","form_name":"EditView","field_to_name_array":{"id":"spoke_with_contact_id","user_name":"spoke_with_contact_name"}}, "single", true);"><img src="themes/default/images/id-ff-select.png"/></button><button type="button" name="btn_clr_parent_contact" id="btn_clr_parent_contact" tabindex="103" title="Clear" class="button lastChild" onclick="this.form.spoke_with_contact_name.value = \'\'; this.form.spoke_with_contact_id.value = \'\';" value="Clear"><img src="themes/default/images/id-ff-clear.png"/></button></span>', )


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks