> 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><ul><li><code>トーストを表示</code>：ページ上部に短いメッセージを表示します。 <a href="/pages/873e675a7ffa256f4722eb14395db37918667ed4">詳細を見る</a>.</li><li><code>フロー ダイアログを開く</code>：ダイアログ बॉक्स内で Salesforce フローを開始します。 <a href="/pages/0fabfe6607d355d8178f54471ac36feab7e62390">詳細を見る</a>.</li></ul></td></tr></tbody></table>

### 例

ユーザーがフォームを送信したときに、その操作を確認するためのアラートモーダルを表示したいとします。

1. ユーザーがフォームを送信したら、送信ボタンのインタラクションを「Open Alert Modal」に設定して、アラートモーダルを起動します。
2. ラベルを「Submission Confirmation」に、メッセージを「Your form has been successfully submitted.」に設定します。
3. モーダルにヘッダーを含めるには、バリアントとして「header」を選択します。
4. テーマには、メッセージの前向きな性質に合わせて「success」を選択します。
5. 「閉じたとき」の設定では、ページを更新するか、確認ページにユーザーを移動させるとよいでしょう。

### ヒント

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

### 結論

アラートモーダルは、ユーザーとのやり取りや重要なフィードバックの提供に最適です。Open Alert Modal インタラクションを使用すると、Salesforce の管理者や開発者は、ユーザー操作の文脈に合わせたさまざまなアラートを作成でき、プラットフォーム全体のユーザー体験を向上させることができます。


---

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