{literal}
<script type="text/javascript">
CRM.$(function($) {
- var $form = $("#{/literal}{$form.formName}{literal}");
+ var $form = $("form.{/literal}{$form.formClass}{literal}");
$('#showPCP, #showSoftCredit').click(function(){
return showHideSoftCreditAndPCP();
});
})
// This is just a cheap trick to store the name in case of a formrule error
.on('change', function() {
- //$('[name=pcp_made_through]', $form).val($(this).select2('data').text || '');
+ $('[name=pcp_made_through]', $form).val($(this).select2('data').text || '');
});
$('.crm-soft-credit-block tr span').each(function () {