> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/open-alert-modal.md).

# アラートモーダルを開く

通知、確認、警告、またはエラーでユーザーの注意を引き、承認を必要とするモーダルアラートを表示します。

## 概要

アラートモーダルを開くの操作は、Salesforce Experience Cloud 内の機能で、ユーザーにアラートモーダルを表示できます。アラートモーダルは、通知、確認、警告、エラーでユーザーの注意を引きます。

## 設定

* **中立的または一般的な情報。** ユーザーに変更を通知するときに使用します。
* **警告。** ユーザーが問題を回避するのに役立つ重要な情報に使用します。
* **エラー。** ユーザーがフローを続行できないようにする重要な情報で、問題を解決するためにユーザー側での対応が必要な場合に使用します

<table><thead><tr><th width="133">名前</th><th>説明</th></tr></thead><tbody><tr><td><strong><code>ラベル</code></strong></td><td>アラートモーダルのヘッダーに表示されるタイトルまたは見出しのテキスト。</td></tr><tr><td><strong><code>メッセージ</code></strong></td><td>アラートモーダルに表示される主なテキスト内容で、通知やアラートの詳細を提供します。</td></tr><tr><td><strong><code>バリアント</code></strong></td><td><ul><li><code>ヘッダー</code> （デフォルト）: モーダルにはヘッダーが含まれます。</li><li><code>ヘッダーなし</code>: モーダルにはヘッダーは含まれません</li></ul></td></tr><tr><td><strong><code>テーマ</code></strong></td><td><ul><li><p>モーダルの見た目のスタイルを定義します。オプションには次が含まれます:</p><ul><li><code>デフォルト</code> （デフォルト）: 標準的な外観。</li><li><code>シャドウ</code>: わずかな影またはオーバーレイ。</li><li><code>反転</code>: 色が反転されます。</li><li><code>代替反転</code>: 標準の反転の代替。</li><li><code>成功</code>: 成功した操作または状態を示す緑のテーマ。</li><li><code>情報</code>: 情報メッセージ用の青いテーマ。</li><li><code>警告</code>: 注意喚起メッセージ用の黄色/オレンジのテーマ。</li><li><code>エラー</code>: エラーメッセージ用の赤いテーマ。</li><li><code>オフライン</code>: 接続がない、またはオフライン状態であることを示します。</li></ul></li></ul></td></tr><tr><td><strong><code>閉じる時</code></strong></td><td><p>ユーザーがアラートモーダルを閉じたときに実行する操作です。受け付ける操作:</p><ul><li><code>トーストを表示</code>: ページ上部に短いメッセージを表示します。 <a href="https://docs.avonnicomponents.com/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/show-toast.md">詳細</a>.</li><li><code>フローダイアログを開く</code>: ダイアログボックスで Salesforce フローを開始します。 <a href="https://docs.avonnicomponents.com/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/open-flow-dialog.md">詳細</a>.</li><li><code>フローパネルを開く</code>: サイドパネルで Salesforce フローを実行します。 <a href="https://docs.avonnicomponents.com/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/open-flow-panel.md">詳細</a>.</li><li><code>すべてのクエリを更新</code>: ページ上のすべてのクエリデータソースを再実行します。</li></ul><p>フローパネルをサポートするコンポーネントでは、 <code>フローパネルを開く</code> も利用できます。</p></td></tr></tbody></table>

## 例

ユーザーがフォームを送信したときに、アクションを確認するためのアラートモーダルを表示したいとします:

1. ユーザーがフォームを送信した後、送信ボタンの操作を「アラートモーダルを開く」に設定して、アラートモーダルを起動します。
2. ラベルを「送信の確認」に、メッセージを「フォームは正常に送信されました。」に設定します。
3. バリアントに「ヘッダー」を選択して、モーダルにヘッダーを含めます。
4. テーマには、メッセージの前向きな性質に合わせて「成功」を選択します。
5. 「閉じたとき」の設定では、ページを更新するか、ユーザーを確認ページに移動させるとよいでしょう。

## 重要な考慮事項

* ユーザーがアラートの目的を理解できるよう、明確で簡潔なメッセージを使用します。
* 直感的なユーザー体験のために、アラートの文脈に合ったテーマを選択します。
* 公開する前に、必ずモーダルのプレビューでテキストの明瞭さと適切なテーマ設定を確認してください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avonnicomponents.com/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/open-alert-modal.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
