Skip to main content
2026 Efficiency Upgrade - Save ¥30 on Templates
Coupon Code:FLOW3DAYS
Only 2 days left 02:41:35

How to Automatically Match Text Fields with Relation Pages in Notion

Use a relay database and Rollup fields to automatically match text input with related pages in Notion.

This question comes from a reader of the Notion course. It has been organized and shared here. If you encounter similar issues while using Notion, feel free to leave a comment.

Reader's Question

Hi, I'd like to ask about an operation in Notion. My database has two fields: A1 (text) and A2 (a Relation property linked to another database). Is it possible that after I fill in the A1 field, A2 automatically matches the content I entered in A1? For example, if I type 20250223 in A1, can A2 automatically search its linked database for a page titled 20250223 and match it?

My Answer

First, it's important to clarify that the Relation property does not have built-in automatic matching capability. You'll need a workaround to achieve this. Let me demonstrate the result first.

In the example below, I'll type 20270809 in the "Text Field" of Database 01 to match the page titled 20270809 in Database 02:

Here are the detailed steps.

Step 1: Create a Relay Database

  1. Name this relay database "Database 03" and create a single page inside it called "Relay Page."

  1. Set up a default template for both "Database 01" and "Database 02." When a new page is created in either database, this template will automatically activate and link the new page to the "Relay Page" in "Database 03."

This way, all pages in Database 01 and Database 02 will be linked to this "Relay Page."

Step 2: Set Up a Rollup Field

In "Database 01," create a Rollup field that displays all the pages from "Database 02" linked through the "Relay Page."

Step 3: Create a Filter Formula

In "Database 01," create a Formula:

Rollup.filter(current.Title.format()==Text)

Now, when the text you enter in the text field of "Database 01" matches a page title in "Database 02," that page will appear in this Formula field.


📘 FLO.W — Notion Personal Management System

FLO.W is a Notion-based personal management template that integrates tasks, notes, projects, habits, and more, complete with comprehensive tutorials.

Ready-to-use Notion template system
Complete tutorials included, beginner-friendly
Continuously updated and maintained
Learn About FLO.W Template✨ 1531+ users chose FLO.W
Share this post
二一

Notion 深度用户,专注于知识管理和效率工具的研究与实践

Newsletter

Join the community

Subscribe to our newsletter for the latest news and updates