2022-12-07 | Twig Support in Max Appt Rule Failure Message
The Max Appointment Rule failure message now supports Twig, this includes the ability to display student and consultant details (more info), and the ability to change the message depending on which rule was broken. This article will cover the latter.
Each Appt Rule now has its own ID number, this can be found in the top-right corner of the rule itself. You will need to re-save this rule if it existed prior to December 7th 2022 in order to use the ID number in the next step.
File:9256678.png
Once you have your ID number(s), you can modify your failure message. For example:
{% for failRule in failRules %}
{% if failRule.id == "1234ABCD" %}
Description for this rule
{% elseif failRule.id == "ABCD1234" %}
Description for that rule
{% endif %}
{% endfor %}