Questions and Answers: Difference between revisions
Jump to navigation
Jump to search
| Line 492: | Line 492: | ||
==Template variables== | ==Template variables== | ||
=== | ===What are Template Variables === | ||
Template variables are short codes that will be replaced by the relevant information from each booking. They can be used in every text setting that allows their use. Copy them exactly as shown in the wiki page, including the [] square brackets, for the full list of Template variables click [[Template_Variables|here]] | |||
===Is it possible to compare text for reporting and/or triggering auto actions? === | ===Is it possible to compare text for reporting and/or triggering auto actions? === | ||
Yes, you can use Smart template variables. See the details in this section of the wiki page [[Template_Variables#Smart_Logic_Template_Variables|Smart Logic template variables]] | Yes, you can use Smart Logic with template variables. See the details in this section of the wiki page [[Template_Variables#Smart_Logic_Template_Variables|Smart Logic template variables]] | ||
IF style template variables will compare two values and display a text if the comparison is true and an alternative text if the comparison is false. Colons : are used between the two comparison values and the first text, a pipe | is used between the two texts. Empty text is allowed if you do not want to display anything for a condition. | IF style template variables will compare two values and display a text if the comparison is true and an alternative text if the comparison is false. Colons : are used between the two comparison values and the first text, a pipe | is used between the two texts. Empty text is allowed if you do not want to display anything for a condition. | ||
===Can I test the Smart logic | ===Can I test the Smart logic template variables before using in auto actions/reports? === | ||
Yes, go to {{#fas:cog}} (SETTINGS) ACCOUNT > PREFERENCES > BOOKINGS > BOOKING HEADER enter your template variables and click Save. | Yes, go to {{#fas:cog}} (SETTINGS) ACCOUNT > PREFERENCES > BOOKINGS > BOOKING HEADER enter your template variables and click Save. | ||
When you open a booking, the result will be shown in the top left of your screen. | When you open a booking, the result will be shown in the top left of your screen. | ||