From 6dec659c52e27c74be0d1cee6f37e8031e5869cf Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Tue, 21 Feb 2017 00:57:21 -0500 Subject: [PATCH] CRM-20146 dont hardcode check_number toggle --- templates/CRM/Contribute/Form/Contribution.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 79e7ff60b6..db34df3c08 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -520,9 +520,10 @@ }); {if !$contributionMode} + {crmAPI var="checkVal" entity="OptionValue" action="getvalue" version="3" option_group_id="payment_instrument" name="Check" return="value"} {include file="CRM/common/showHideByFieldValue.tpl" trigger_field_id ="payment_instrument_id" - trigger_value = '4' + trigger_value = $checkVal target_element_id ="checkNumber" target_element_type ="table-row" field_type ="select" -- 2.25.1