We need a way to work around the limit of soft credits that can be added to a contribution. I understand the limit is 10 but that is insufficient for our needs. Please advise.
-
Are you saying you want to credit more than 10 contacts for one specific contribution?– KarinG - Semper ITDec 3, 2019 at 22:36
-
probably a duplicate of civicrm.stackexchange.com/questions/8550/…– samuelsovDec 4, 2019 at 2:21
-
Yes, I am looking to increase the limit of 10 contacts for one specific contribution.– Felicia LevineDec 4, 2019 at 15:32
1 Answer
There is technically no limit in the soft credit : it's only a limitation in the public form.
If it's a rare case i would propose to simply add the missing soft credit using the API explorer :
- go to menu Support -> Developer -> API Explorer v3 (or v4 but my screenshot is in v3)
- choose entity
ContributionSoft
, Actioncreate
and set value forContribution
,Soft Credit Amount
andContact ID
- Then use
Execute
button
Like so :
Otherwise, you will have to create an extension to somehow overwrite the CRM_Contribute_Form_Contribution::$_softCreditItemCount value and it should do the trick :
/**
* @var int
*
* Max row count for soft credits. The value here is +1 the actual number of
* rows displayed.
*/
public $_softCreditItemCount = 11;