TracCloudNews39: Difference between revisions

From Redrock Wiki

TracCloudNews39
No edit summary
No edit summary
Line 35: Line 35:
{{NewsletterContactInfo}}
{{NewsletterContactInfo}}


[[Category:TracCloud]]
[[Category:TracCloud_Newsletters]]

Revision as of 13:43, 7 November 2023

Custom Messages for Max Appointment Rules

Did you know that it's possible to create custom warning messages for your max appointment rules? This would allow you to display relevant policy information or contact details depending on which rule the student is at the limit of. This is can be accomplished by using the “Rule Failure Message” field, found under your max appointment rules.

9370938.png

This message can be edited by going to Other > Other Options > Profiles > [Your profile] > Prefs > Scheduling > Max Appointment / Visit Rules and Blocks. You can enter a generic message in the "Rule Failure Message" field for all rules to use, or create unique messages for each rule.

1693361.png

Within the rules, you will see an ID/code in the top-right corner. Copy this, and see how it's used in the Twig example below.

File:5494722.png

{% for failRule in failRules %}
{% if failRule.id == "1Y0GYPWS" %}
Sorry, you can only have one upcoming appointment at a time. Please try again later.
{% elseif failRule.id == "HKIEAATS" %}
You can only book 4 appointments per week.
If you think an exception needs to be made, reach out to us at help@school.edu.
{% endif %}
{% endfor %}



When a student runs into a rule and this message is displayed, it first checks if the failed rule is "1Y0GYPWS". If this is true, it displays the following message. If this is false, it continues to check if the failed rule is "HKIEAATS", and so on until the end of the Twig logic.

For more information on Twig, click here. For more information on scheduling rules in general, click here.


More Questions?
We hope that you found this article helpful, and as always if you have any questions about this or any other features, please feel free to let us know by emailing Helpdesk@go-redrock.com or by submitting a ticket.
Thank you for your continued support!