if ($signupType) {
//$this->_formValues['activity_type_id'] = array();
$this->_formValues['activity_role'] = 1;
- $this->_formValues['activity_contact_name'] = '';
$this->_defaults['activity_role'] = 1;
- $this->_defaults['activity_contact_name'] = '';
$activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, FALSE, FALSE, 'name');
$renew = CRM_Utils_Array::key('Membership Renewal', $activityTypes);
$controller->set('cid', $this->_contactId);
$controller->set('status', array(1 => 'on'));
$controller->set('activity_role', 2);
- $controller->set('activity_contact_name', 'd6');
$controller->set('force', 1);
$controller->process();
$controller->run();
<span class="crm-clear-link">
(<a href="#" title="unselect"
onclick="unselectRadio('activity_role', '{$form.formName}');
- cj('#activity_contact_name').val('').parent().hide(); return false;" >
+ return false;">
{ts}clear{/ts}
</a>)
</span>
+
<div>
- {$form.activity_contact_name.html}
<div class="description font-italic">{ts}Complete OR partial name{/ts}
<span class="contact-name-option option-1">{ts} of the Source Contact{/ts}</span>
<span class="contact-name-option option-2">{ts} of the Assignee Contact{/ts}</span>
cj('[name=activity_role]:input').change(function() {
cj('.description .contact-name-option').hide();
if (cj(this).is(':checked')) {
- cj('#activity_contact_name').parent().show();
cj('.description .option-' + cj(this).val()).show();
}
}).change();
-if (cj('[name=activity_role]:checked').length < 1) {
- cj('#activity_contact_name').parent().hide();
-}
-
function showCustomData(chkbox) {
if (document.getElementById(chkbox).checked) {
//inject Searchable activity custom fields according to activity type selected