> For the complete documentation index, see [llms.txt](https://help.adalo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.adalo.com/ja/action-basics/share-action.md).

# 共有アクション

共有アクションは、デバイスに組み込まれている「共有シート（シェアメニュー）」を開き、アプリ内のコンテンツをユーザーのデバイスにあるあらゆるアプリ（テキストメッセージ、メール、SNS、メモなど）に共有できるようにする機能です。

特定のURLを開く「外部リンク（External Link）」とは異なり、**共有**アクションではユーザー自身がコンテンツの送信先を選択できます。

***

#### 共有できるもの <a href="#what-you-can-share" id="what-you-can-share"></a>

共有できるコンテンツは、1回のアクションにつき1つだけです。

* **テキスト** — データベースにある名前、説明文、メッセージ、または任意のテキスト値
* **画像** — アプリ内に保存されている写真や画像
* **ファイル** — アプリ内に保存されているPDFなどのドキュメント
* **数値** — 価格、スコア、その他の数値
* **日付** — データベースにある日付の値

URLを共有したい場合、データベースに「テキスト」プロパティとしてURLを保存し、それを共有元（Source）として選択してください。

***

#### 設定方法 <a href="#how-to-set-it-up" id="how-to-set-it-up"></a>

1. 共有をトリガーにしたいコンポーネント（ボタンやアイコンなど）を選択します。
2. 「**Add Action**（アクションを追加）」 を開きます。
3. 「**More...**（その他）」 を選び、「**Share**（共有）」 を選択します。
4. 「**Source**（共有元）」 フィールドで、共有したいデータを選択します。このドロップダウンには、そのスクリーンで利用可能なデータ（テキストフィールド、画像、ファイルなど）がすべて表示されます。

設定はこれだけです。設定が必要なのは「Source」フィールドのみです。ユーザーがコンポーネントをタップすると、そのコンテンツがセットされた状態で共有シートが開きます。

***

#### 活用例（ユースケース） <a href="#example-use-case" id="example-use-case"></a>

例えば、レシピアプリを作っているとします。各レシピには「名前」「説明文」「写真」があります。

* レシピの詳細画面に共有アイコンを追加します。
* 共有アクションの Source（共有元）を、レシピの「説明文（**description**）」フィールドに設定します。
* ユーザーがアイコンをタップすると共有シートが開き、レシピの説明文をテキストメッセージ、メール、AirDrop、またはデバイス内のその他のアプリを介して友人に送信できます。

レシピの写真の方を共有したい場合は、Sourceを「画像（**image**）」フィールドに変更するだけです。共有シートが開き、ユーザーは画像を直接送信できるようになります。

***

#### 注意事項 <a href="#notes" id="notes"></a>

* 共有シートは**Adaloではなく**、デバイスのオペレーティングシステム（iOSやAndroidなど）によって制御されます。 ユーザーに表示される選択肢（アプリ）は、そのユーザーがインストールしているアプリによって異なります。
* 1つの共有アクションにつき、共有できるSourceは1つだけです。テキストと画像の両方を共有させたい場合は、別々のボタンを用意し、それぞれに個別の共有アクションを設定してください。
* サポートされている画像の形式：PNG、JPG、GIF。サポートされているファイルの形式：PDF。
* **Webアプリ（PWA）の場合： 共有にはブラウザに組み込まれている共有機能が使用されます。一部のデスクトップ（PC）ブラウザはこれをサポートしておらず、アラート（警告）が表示される場合があります。**


---

# 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://help.adalo.com/ja/action-basics/share-action.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.
