References let you personalize your messages and documents automatically. Insert a short code, and Auctria fills in the right information for each recipient, item, or donor.
For example, if you send this text message:
Hi {{ FirstName }}, thanks for joining us! Your Paddle# is {{ Number }}.
Jane Smith receives:
Hi Jane, thanks for joining us! Your Paddle# is 112.
How to add a reference
- Open the email, text message, or template you want to edit.
- Place your cursor where the information should appear.
- Type or paste the reference code, including both sets of curly braces. Check the table under Where you can use references to choose the right form.
- Send yourself a test message, or preview the template, to check the result before sending it to everyone.
Avoid typos:
Copy and paste codes straight from the reference tables to avoid typos. A missing brace or misspelled word means the code won't be filled in.
Word templates and everything else
Auctria fills in references in two different ways, depending on where you use them. Most codes look the same in both, but lists, money, and dates work differently.
| Word document templates | Everything else | |
|---|---|---|
| Where | Documents you generate from Printing → Word Templates. See Word Templates. | Emails, text messages, bid sheets, PDF catalog templates, certificates, display pages, receipt headers and footers, and basket descriptions. |
| Lists | {% foreach SilentItems %}…{% end %} | {% for bid in WinningBids %}…{% endfor %} |
| Money | Formatted automatically: $300.00 | A plain number: 300. Add the currency filter to format it. |
| Dates | 23-Oct 8:45 PM by default | Add the timestamp filter to show them in your time zone. |
| Conditions | {% if HasWinningBid %}…{% else %}…{% end %} | {% ifstr Company %}…{% endifstr %} |
The reference pages show which codes work where. For filters, conditions, and other options, see Formatting and Conditions.
Short form and full form
Most references come in two forms:
| Short form | Full form |
|---|---|
{{ FirstName }} | {{ Bidder.FirstName }} |
The short form shows information from the one record the message or template is about. On a bid sheet, that record is the item. On a receipt footer, it's the participant.
The full form starts with the type of record, such as Bidder. or Donor.. It only works in places where Auctria makes that record available by name.
Which form works depends on where you use it. In some places, only one form works, and the other shows up blank.
Which form should I use?
In emails built with the email editor, always use the full form ({{ Bidder.FirstName }}). In bid sheets, catalogs, certificates, display pages, receipt headers and footers, and Word document templates, use the short form ({{ Title }}), because these templates are about a single record. Text messages accept either form.
Names that mean the same thing
Some record types have two names. Both work the same way, and you may see either one in examples:
| These are the same | |
|---|---|
Bidder. | Participant. |
Auction. | Event. |
For example, {{ Bidder.FirstName }} and {{ Participant.FirstName }} both show the participant's first name.
Where you can use references
| Where | Short form | Full form | Information available |
|---|---|---|---|
| Text messages to participants | Yes | Yes | The participant, the event, and your organization |
| Emails built in the email editor | No | Yes | Participants, donors, the event, and your organization |
| Basic emails (plain subject and body) | Yes | Event and organization only | The recipient's own details |
| Bid sheets | Yes | No | The item |
| PDF catalog templates (description, donor, and quantity) | Yes | No | The item |
| Certificates and display pages | Yes | No | The item |
| PDF participant receipt headers and footers | Yes | No | The participant, plus receipt totals |
| Participant statement email headers and footers | Yes | No | The participant's own details only |
| Donor receipt headers and footers | Yes | No | The donor |
| Basket description template | Yes | No | The basket item |
| Word document templates | Yes | No | One participant, donor, or item, or a whole catalog, plus lists you can loop through |
| System emails | Varies | Yes | Depends on the message. See What's included in system emails. |
Things to keep in mind
- Single-record templates use the short form only. On a bid sheet, use
{{ Title }}, not{{ Item.Title }}. The full form shows up blank there. - You can follow links to related records. When a field points to another record, add a dot to reach that record's details, even in a single-record template. For example,
{{ Donor.Name }}on a bid sheet shows the item donor's name. - Always add a field to a linked record. In Word templates, a record on its own, such as
{{ Auction }}, prints an internal name likeAz.Reports.Word.AuctionSourceRecord. Use{{ Auction.Name }}instead. - Basic emails only use the full form for event and organization details. For the recipient's own details, use the short form:
{{ FirstName }}works, but{{ Bidder.FirstName }}shows up blank. - Your organization's details are available everywhere. Use the
Organization.prefix, such as{{ Organization.Name }}. In the email editor, the available organization details are the name, email, website, logo, currency, time zone, and social media links. - Some fields can't be used as references. These include hidden fields and files such as images (see Item References for how to show item images). Some calculated fields aren't available either, and the email editor includes fewer calculated fields than other places.
Lists
Some references hold a list instead of a single value, such as an item's winning bids or a participant's items won. To show a list, loop through it. The loop repeats whatever is between its start and end for each entry in the list.
Lists in Word document templates
Start the loop with {% foreach ListName %} and end it with {% end %}. Inside the loop, the short form refers to each entry in the list.
For example, this lists the number and title of every Paper Bidding item in a catalog:
{% foreach SilentItems %}{{ Number }} {{ Title }}{% end %}
Every list on the reference pages works in Word templates. To show a list as table rows, or to sort it, see Word Document Templates.
Lists everywhere else
Start the loop with {% for name in ListName %} and end it with {% endfor %}. Choose any short name, then put it in front of each field inside the loop.
For example, this lists the amount of each winning bid on a multi-winner item:
{% for bid in WinningBids %}{{ bid.Amount | currency }} {% endfor %}
Outside Word templates, only these item lists work: Contents, AllImages, AlternateImages, and WinningBids. See Item References. Participant, donor, and catalog lists only work in Word templates and a few system emails. Elsewhere, they show up blank.
What's included in system emails
System emails are the messages Auctria sends automatically. Each one includes a fixed set of information.
| Message | What you can use |
|---|---|
| Purchase and registration receipts | Bidder./Participant., Auction./Event., Organization., plus {{ Purchases }} (the purchased items), {{ Payment }} (the amount paid), {{ PaidBy }}, {{ Balance }}, {{ BidTotal }}, {{ Donation }}, {{ HasPurchase }}, and {{ HasDonation }} |
| Outbid and bid confirmation emails | Bidder., Item., and Bid. |
| E-tickets | Bidder., Ticket., and Ticket.Item. |
| Donor receipt email | Donor. |
| Text message statement | Items won, purchases, donations, payments, and tickets, with their totals |
Test the text statement:
The lists in the text message statement may not display as expected. Send yourself a test statement before relying on them.
Tips for great messages
- Test first. Always send a test to yourself before sending to your full list. A reference that shows up blank usually means the wrong form for that place, a field that isn't available there, or a list that only works in Word templates.
- Format money. Outside Word templates, money shows as a plain number. Add
| currency, such as{{ StartingBid | currency }}, to show$300.00. - Keep texts short. Text messages have limited space. Use short links like
{{ ShortRegisterCreditCardUrl }}instead of full links. - Plan for blank fields. If a record doesn't have the information (for example, no company name), the reference shows nothing. Wrap optional text in a condition so it only appears when there's a value. See Show Text Only When A Field Has A Value.
- Check internal fields. Some fields, like Notes, may contain information meant only for your team. Review them before including them in messages.
Reference lists
| Page | Description |
|---|---|
| Participant References | Names, contact details, Paddle#, receipt totals, and payment links |
| Item References | Item titles, prices, images, winners, and closing times |
| Donor References | Donor names, contact details, and donated items |
| Bid History References | Individual bids, amounts, and taxes |
| Payment References | Payments, card charges, and how payments were split |
| Catalog and Category References | Word catalog templates for items, participants, and donors |
| Formatting and Conditions | Money and date formatting, links, images, conditions, and sorting |
