Building a Record Title
In a previous section, we discussed how to generate a reference number in Tape. Now, let’s explore how to build a record title using the calculation field.
First off lets take a look at the parts of the title in our example:
- The icon at the start changes depending on the status of the project, this ensures we can see at a glance if the project is on track, at risk or off track.
- Next is the project reference number which we created in the previous section.
- Finally, we have the project name itself.
The calculation field
Section titled “The calculation field”To build the record title, we will use a calculation field that combines all these elements together. The calculation field will look something like this:
`${@Status.split(" ")[0]}${@Project Ref} - ${@Name}`
In the code above, we are using template literals to construct the title. The ${}
syntax allows us to embed expressions inside the string. We split the status string to get the appropriate icon based on the project status.
This will give us a title that looks like: “‼️PRJ25001 - Test Project”
The Record fields
Section titled “The Record fields”All the fields we need can be seen in the screenshot below:
Using a calculation field to build your record titles in Tape offers several advantages:
- Dynamic Updates: The title will automatically update if any of the underlying fields change
- Visibility: Quick and easy visibility of key information at a glance
- Related records: If the record is related to a different record then the title will be shown and by building your title this way, you make core information easily accessible.