We’re not talking about your garden variety pest. In Award Force, a slug looks like this: QrXJzmNX
The name “slug” comes from web publishing, and refers usually to part of a URL which identifies a page or resource. The name is based on the use of the word slug in the news media to indicate a short name given to an article for internal use.
In Award Force, a slug is a short and unique reference to a resource such as an entry, a category, a field— you get the idea! Award Force slugs are always exactly eight characters long, and a random mix of upper and lower case letters. There are many reasons for using a randomised code to reference specific pieces of information, but mostly it is to have a short and absolutely unique identifier, or pseudonym.
What are they for?
Knowing how you can use slugs to reference and find specific data within Award Force is powerful, and can make life easy. Let's look at some examples of different slugs and where they can be found..
Field slug
Each field has a slug associated with it. To locate this slug, follow the steps below:
- In the Manage workspace, navigate to Entries
- Click Edit form
- Hover your cursor over the field and click its settings icon
- In the configuration tray on the right side of the page, open the 'Advanced' section
- Copy your slug
Entry slug
This is a slug that references an entire entry.
You can find the slug by going to an entry and checking the URL for the eight character code. In the example below we can see the slugs for (1) the 'entry' and (2) the 'tab' of the entry form.
You can also find it by showing the “slug column” in the Manage entries view. To do this, go to Entries, find and click the cog icon at the top left of the list, and tick the box next to 'Slug'. This will show you the individual slug for each entry.
Examples of using slugs
Notifications
You can use slugs to include entry or user information in notifications.
There is a great article on creating a notification here: Ultimate guide to notifications. Using slugs in notifications can help you to:
-
Uniquely reference the entry to which a notification relates, with the {entry_slug} merge tag
Note: this merge tag is included by default in the entry submitted email notification.
- Include entry information from an entry field, with the {entry_field:aAbBcCdD} merge tag, using the slug of the field you want to include, in the merge tag
- Include user information from a user field, with the {user_field:eEfFgGhH} merge tag
Search
Need to find a specific entry? Search using the slug of the entry to get right to what you are looking for. This feature can be useful in instances where an entrant has entered the same entry/project in multiple categories, with the same entry name.
This feature is also really useful when you troubleshoot an entry. Just ask the entrant what their unique eight character code is at the end of the URL. Entry slugs are mentioned in the default content of entry submission confirmation emails, for exactly this purpose.
Entry slugs are also included:
- On every PDF downloaded from Award Force (below the QR code at top right of the first page)
- Every line item on an entry payment invoice
- On packing slips (below the QR code)
Head over to Entries in the Manage workspace and insert the entry slug in the search box to find the entry you’re looking for.
Export
When you export anything from Award Force, be sure to include the slug column in the export as a unique identifier.
For example, exporting users, the user slug is the best unique identifier to help find an individual at a later stage if: there are two users with the same name; a user updated their email address; a user registers twice with different email addresses.
If you need to anonymize users or entries in your exports for some reason, slugs are a perfect anonymous pseudonym.
Analysis
When exporting data from Award Force to do any form of analysis— if you need to combine data sets using VLOOKUP perhaps, slugs are the best identifier to match on. If your analysis is quantitative and needs to be anonymised, slugs serve as good pseudonyms for unique users or entries.