TracCloudNews39: Difference between revisions

From Redrock Wiki

TracCloudNews39
(Created page with "{| style="width:100%; vertical-align:top; " | style="width:250px; vertical-align:top; padding:2px 15px 2px 2px;" | {{TracCloudNewslettersTOC}} | style="vertical-align:top; padding:20px 20px 20px 2px;" | {| style="width:100%; vertical-align:top; " ==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 depe...")
 
Tag: Redirect target changed
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="width:100%; vertical-align:top; "
#REDIRECT [[TracCloud:_Scheduling_Preferences]]
| style="width:250px; vertical-align:top; padding:2px 15px 2px 2px;" | {{TracCloudNewslettersTOC}}
| style="vertical-align:top; padding:20px 20px 20px 2px;" |
{| style="width:100%; vertical-align:top; "
==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.
 
[[File:9370938.png|700px]]<br><br>
 
This message can be edited by going to <i>Other > Other Options > Profiles > [Your profile] > Prefs > Scheduling > Max Appointment / Visit Rules and Blocks</i>. You can enter a generic message in the "Rule Failure Message" field for all rules to use, or create unique messages for each rule.
 
[[File:1693361.png|700px]]<br><br>
 
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|600px]]<br><br>
 
<syntaxhighlight lang="Twig">
{% 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 %}
</syntaxhighlight><br><br>
 
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, [[TracCloudGuideProfilePrefsTwig|click here]]. For more information on scheduling rules in general, [[TracCloudGuideProfilePrefsSchedule#Max_Appointment_Rules_and_Blocks|click here.]]
 
<hr>
 
{{NewsletterContactInfo}}
 
|}
[[Category:TracCloud]]

Latest revision as of 15:54, 22 November 2024