# マジックテキスト

## マジックテキストについて学ぶ

マジックテキストは、Adaloの基本的な要素であり、ダイナミックで魅力的なアプリを作成するために理解する必要があります。マジックテキストは、データベースからデータを取得してアプリ内に表示し、データベース内の各レコード項目ごとにデザインを複製する必要がありません。

マジックテキストは本当に :sparkles:マジック:sparkles: です。

{% embed url="<https://youtu.be/JBqBt_0Kb80>" %}

テキストを表示するコンポーネントでは、テキストボックスの下にあるツールバーに、マジックテキストアイコンが表示されます。<img src="/files/JxlfljkOsM5sHOpBGrXx" alt="" data-size="line">をクリックすると、コンポーネントに追加できるマジックテキストが表示されます。

マジックテキストは、アプリのデータベースからテキストが自動的に置換されます。例えば、画面が旅行の詳細を表示している場合、マジックテキストを使用して旅行の名前を表示できます。

ログインしているユーザー、リスト内の任意のアイテム、または画面にリンクされている任意のリストアイテムのためにマジックテキストを表示できます。

例えば、旅行アプリがあり、旅行のオプションを表示し、ユーザーが特定の旅行をクリックしてその旅行の詳細情報が表示される画面を開けるようにしたい場合は以下の操作を行います。

1. テキストボックス、画像、または他のコンポーネントを挿入します
2. テキストボックスのツールバーからマジックテキストアイコンを選択します
3. 追加したいデータベースコレクションとプロパティを選択します
4. マジックテキストが機能するか確認するために'Preview'をクリックします

![](/files/I0MWAFfx1vgX0ic4nTSt)

![ステップ4](/files/vBD4eUl41ej1xu5hQLEp)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.adalo.com/ja/component-basics/inserting-dynamic-text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
