Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CRM.buildCustomData(
Searching 5208 files for "CRM.buildCustomData("
/data/work/source/civicrm/civicrm-core/CRM/Activity/Form/Activity.php:
667 array('' => '- ' . ts('select') . ' -') + $this->_fields['followup_activity_type_id']['attributes'],
668 FALSE, array(
669: 'onchange' => "CRM.buildCustomData( 'Activity', this.value );",
670 'class' => 'crm-select2 required',
671 )
/data/work/source/civicrm/civicrm-core/CRM/Campaign/Form/Campaign.php:
215
216 // add campaign type
217: $this->addSelect('campaign_type_id', array('onChange' => "CRM.buildCustomData( 'Campaign', this.value );"), TRUE);
218
219 // add campaign status
/data/work/source/civicrm/civicrm-core/CRM/Case/Form/Activity/OpenCase.php:
159 'context' => 'create',
160 'entity' => 'Case',
161: 'onchange' => "CRM.buildCustomData('Case', this.value);",
162 ), TRUE);
163 if ($form->_caseTypeId) {
/data/work/source/civicrm/civicrm-core/CRM/Contribute/Form/Contribution.php:
631 array('' => ts('- select -')) + $financialTypes,
632 TRUE,
633: array('onChange' => "CRM.buildCustomData( 'Contribution', this.value );")
634 );
635
/data/work/source/civicrm/civicrm-core/CRM/Event/Form/ManageEvent/EventInfo.php:
153
154 $this->addSelect('event_type_id',
155: array('onChange' => "CRM.buildCustomData( 'Event', this.value );"),
156 TRUE
157 );
/data/work/source/civicrm/civicrm-core/CRM/Grant/Form/Grant.php:
172
173 $attributes = CRM_Core_DAO::getAttribute('CRM_Grant_DAO_Grant');
174: $this->addSelect('grant_type_id', array('onChange' => "CRM.buildCustomData( 'Grant', this.value );"), TRUE);
175
176 //need to assign custom data type and subtype to the template
/data/work/source/civicrm/civicrm-core/CRM/Member/Form/Membership.php:
578
579 $memTypeJs = array(
580: 'onChange' => "buildMaxRelated(this.value,true); CRM.buildCustomData('Membership', this.value);",
581 );
582
/data/work/source/civicrm/civicrm-core/CRM/Member/Form/MembershipRenewal.php:
326 }
327
328: $js = array('onChange' => "setPaymentBlock(); CRM.buildCustomData('Membership', this.value);");
329 $sel = &$this->addElement('hierselect',
330 'membership_type_id',
/data/work/source/civicrm/civicrm-core/templates/CRM/Activity/Form/Activity.tpl:
298 {/literal}
299 {if $customDataSubType}
300: CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
301 {else}
302: CRM.buildCustomData( '{$customDataType}' );
303 {/if}
304 {literal}
/data/work/source/civicrm/civicrm-core/templates/CRM/Campaign/Form/Campaign.tpl:
111 CRM.$(function($) {
112 {/literal}{if $customDataSubType}
113: CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
114 {else}
115: CRM.buildCustomData( '{$customDataType}' );
116 {/if}
117 {literal}
/data/work/source/civicrm/civicrm-core/templates/CRM/Campaign/Form/Petition.tpl:
125 CRM.$(function($) {
126 {/literal}
127: CRM.buildCustomData( 'Survey' );
128 {literal}
129 });
/data/work/source/civicrm/civicrm-core/templates/CRM/Campaign/Form/Survey/Main.tpl:
91 CRM.$(function($) {
92 {/literal}
93: CRM.buildCustomData( 'Survey' );
94 {literal}
95 });
..
121 CRM.$(function($) {
122 {/literal}
123: CRM.buildCustomData( 'Survey' );
124 {literal}
125 });
/data/work/source/civicrm/civicrm-core/templates/CRM/Case/Form/Activity.tpl:
289 {/literal}
290 {if $customDataSubType}
291: CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
292 {else}
293: CRM.buildCustomData( '{$customDataType}' );
294 {/if}
295 {literal}
/data/work/source/civicrm/civicrm-core/templates/CRM/Case/Form/Case.tpl:
133 var customDataSubType = $('#case_type_id').val();
134 if ( customDataSubType ) {
135: CRM.buildCustomData( {/literal}'{$customDataType}'{literal}, customDataSubType );
136 } else {
137: CRM.buildCustomData( {/literal}'{$customDataType}'{literal} );
138 }
139 });
/data/work/source/civicrm/civicrm-core/templates/CRM/common/customDataBlock.tpl:
7 CRM.$(function($) {
8 {/literal}
9: CRM.buildCustomData( '{$customDataType}' );
10 {if $customDataSubType}
11: CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
12 {/if}
13 {literal}
/data/work/source/civicrm/civicrm-core/templates/CRM/Contact/Form/Contact.tpl:
195 $('.customDataPresent').change(function() {
196 var values = $("#contact_sub_type").val();
197: CRM.buildCustomData({/literal}"{$contactType}"{literal}, values).one('crmLoad', function() {
198 highlightTabs(this);
199 loadMultiRecordFields(values);
...
210 function loadNextRecord(i, groupValue, groupCount) {
211 if (i < groupCount) {
212: CRM.buildCustomData({/literal}"{$contactType}"{literal}, subTypeValues, null, i, groupValue, true).one('crmLoad', function() {
213 highlightTabs(this);
214 loadNextRecord(i+1, groupValue, groupCount);
/data/work/source/civicrm/civicrm-core/templates/CRM/Contact/Form/CustomData.tpl:
52 function loadNextRecord() {
53 if (i < customValueCount) {
54: CRM.buildCustomData(contact_type, contact_subtype, null, i++, groupID, true).one('crmLoad', loadNextRecord);
55 }
56 }
57: CRM.buildCustomData(contact_type, contact_subtype).one('crmLoad', loadNextRecord);
58 });
59 </script>
/data/work/source/civicrm/civicrm-core/templates/CRM/Contact/Form/Relationship.tpl:
262 $('.crm-relationship-form-block-is_current_employer', $form).toggle(rType === {/literal}'{$employmentRelationship}'{literal});
263
264: CRM.buildCustomData('Relationship', rType);
265 }
266 }
/data/work/source/civicrm/civicrm-core/templates/CRM/Contribute/Form/UpdateSubscription.tpl:
60 CRM.$(function($) {
61 {/literal}
62: CRM.buildCustomData( '{$customDataType}' );
63 {literal}
64 });
/data/work/source/civicrm/civicrm-core/templates/CRM/Custom/Form/Edit.tpl:
7 CRM.$(function($) {
8 {/literal}
9: CRM.buildCustomData( '{$customDataType}' );
10 {if $customDataSubType}
11: CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
12 {/if}
13 {literal}
/data/work/source/civicrm/civicrm-core/templates/CRM/Custom/Form/Edit/CustomData.tpl:
34 {else}
35 <div id="add-more-link-{$cgCount}" class="add-more-link-{$group_id} add-more-link-{$group_id}-{$cgCount}">
36: <a href="#" class="crm-hover-button" onclick="CRM.buildCustomData('{$cd_edit.extends}',{if $cd_edit.subtype}'{$cd_edit.subtype}'{else}'{$cd_edit.extends_entity_column_id}'{/if}, '', {$cgCount}, {$group_id}, true ); return false;">
37 <i class="crm-i fa-plus-circle"></i>
38 {ts 1=$cd_edit.title}Another %1 record{/ts}
/data/work/source/civicrm/civicrm-core/templates/CRM/Event/Form/Participant.tpl:
352
353 // Event and event-type custom data
354: CRM.buildCustomData('Participant', eventId, {/literal}{$eventNameCustomDataTypeID}{literal}, null, null, null, true);
355: CRM.buildCustomData('Participant', info.event_type_id, {/literal}{$eventTypeCustomDataTypeID}{literal}, null, null, null, true);
356
357 buildFeeBlock();
...
376 function buildRoleCustomData() {
377 var roleId = $('select[name^=role_id]', $form).val() || [];
378: CRM.buildCustomData('Participant', roleId.join(), {/literal}{$roleCustomDataTypeID}{literal});
379 }
380
...
425
426 {/literal}
427: CRM.buildCustomData( '{$customDataType}', null, null );
428 {if $eventID}
429: CRM.buildCustomData( '{$customDataType}', {$eventID}, {$eventNameCustomDataTypeID} );
430 {/if}
431 {if $eventTypeID}
432: CRM.buildCustomData( '{$customDataType}', {$eventTypeID}, {$eventTypeCustomDataTypeID} );
433 {/if}
434 {literal}
/data/work/source/civicrm/civicrm-core/templates/CRM/Grant/Form/Grant.tpl:
106 CRM.$(function($) {
107 {/literal}
108: CRM.buildCustomData( '{$customDataType}' );
109 {if $customDataSubType}
110: CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
111 {/if}
112 {literal}
/data/work/source/civicrm/civicrm-core/templates/CRM/Member/Form/Membership.tpl:
615 if ( !priceSetId ) {
616 cj('#membership_type_id_1').val(0);
617: CRM.buildCustomData(customDataType, null );
618
619 // hide price set fields.
...
798 }
799
800: CRM.buildCustomData( customDataType, subTypeNames );
801 }
802
/data/work/source/civicrm/civicrm-core/templates/CRM/Member/Form/MembershipRenewal.tpl:
191 $('#changeNumTerms').hide();
192 {/literal}
193: CRM.buildCustomData('{$customDataType}');
194 {if $customDataSubType}
195: CRM.buildCustomData('{$customDataType}', {$customDataSubType});
196 {/if}
197 {literal}
42 matches across 25 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment