{% from "deliver_grant_funding/macros/calculation_symbols.html" import calculation_symbols %} {% from "govuk_frontend_jinja/components/details/macro.html" import govukDetails %} {% macro render_calculated_condition_custom_expression_field(form, is_group) %} {% set addDataToExpressionButton %} {{ form.add_context(params={"html": "Reference data for calculation", "classes": "govuk-button--secondary app-context-aware--button", "value": "custom_expression"}) }} {% endset %} {% set customExpressionHint %}
Use number question references, calculation symbols and numbers to describe when to show this {{ "group" if is_group else "question" }} to the user.
For example, if you need to show the {{ "group" if is_group else "question" }} when the capital spend value plus the revenue spend value is more than the funding value, the calculation would be: