> 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).

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

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

## 概要

Open Alert Modal のインタラクションは、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="/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/show-toast.md">詳細を見る</a>.</li><li><code>フローダイアログを開く</code>：ダイアログボックスで Salesforce フローを開始します。 <a href="/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/open-flow-dialog.md">詳細を見る</a>.</li><li><code>フローパネルを開く</code>：サイドパネルで Salesforce フローを実行します。 <a href="/experience-cloud/experience-cloud-ja/puropatipaneru/interactions/open-flow-panel.md">詳細を見る</a>.</li><li><code>すべてのクエリを更新</code></li><li><code>クエリを更新</code></li></ul></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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
