> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-feat-docs-5569-member-mgmt.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ユースケース：Formsを使用してプログレッシブプロファイルフォームを構成する

> Forms for Actionsを使用してプログレッシブプロファイルフォームを構成する方法を説明します。

<Card title="始める前に">
  1. 以下のスコープを有効にして、[マシンツーマシンアプリケーション](https://auth0.com/docs/get-started/auth0-overview/create-applications/machine-to-machine-apps)を作成します。

  * `read:users`
  * `update:users`
  * `create:users`
  * `read:users_app_metadata`
  * `update:users_app_metadata`
  * `create:users_app_metadata`

  2. マシンツーマシンアプリケーションの資格情報を使って[Vault接続](/docs/ja-jp/customize/forms/vault)を追加します。
</Card>

Forms for Actionsを使用すると、プログレッシブプロファイリングフローを作成して、会社名や役職などの不足している情報を収集し、それらを`user_metadata`属性として保管するようユーザーに求めるタイミングを決定できます。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/O0ppsuEN5hG8PtuI/docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?fit=max&auto=format&n=O0ppsuEN5hG8PtuI&q=85&s=ebc49b0f6eaf0ad4e011bede973cee86" alt="Dashboard > Actions > Forms > Form" data-og-width="1404" width="1404" data-og-height="638" height="638" data-path="docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/O0ppsuEN5hG8PtuI/docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=280&fit=max&auto=format&n=O0ppsuEN5hG8PtuI&q=85&s=5c66fcebc19e8ec83f78e0374c61c89b 280w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/O0ppsuEN5hG8PtuI/docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=560&fit=max&auto=format&n=O0ppsuEN5hG8PtuI&q=85&s=5d48a59dbef116f63eeb2668a83b402c 560w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/O0ppsuEN5hG8PtuI/docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=840&fit=max&auto=format&n=O0ppsuEN5hG8PtuI&q=85&s=9c108e60af6443844652f5411dba847b 840w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/O0ppsuEN5hG8PtuI/docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=1100&fit=max&auto=format&n=O0ppsuEN5hG8PtuI&q=85&s=18763e7695ed728d48a45e002001cf4a 1100w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/O0ppsuEN5hG8PtuI/docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=1650&fit=max&auto=format&n=O0ppsuEN5hG8PtuI&q=85&s=eb7c7175cb080c69d638d389d3ffa34d 1650w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/O0ppsuEN5hG8PtuI/docs/images/ja-jp/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=2500&fit=max&auto=format&n=O0ppsuEN5hG8PtuI&q=85&s=c90160ccd1196467b4a5cbcd4c223b3f 2500w" />
</Frame>

以下のセクションでは、ノードとフローを使用してプログレッシブプロファイルフォームを作成する方法と、フォームを[ログイン後のアクション](/docs/ja-jp/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger)に追加する手順について説明します。

## フォームをゼロから作成する

情報を収集するためのフォームを作成するには、次の手順に従ってください。

1. **［Auth0 Dashboard］>［Actions（アクション）］>［Forms（フォーム）］** の順に選択して、フォームエディターを開きます。
2. **［Create Form（フォームを作成）］** > **［Start from scratch（初めから作成する）］** の順に選択します。

特に設定を変更しない限り、新しいフォームには開始ノード、ステップノード、および終了スクリーンノードが含まれます。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/nooJ_hvpLM-VI0Ft/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?fit=max&auto=format&n=nooJ_hvpLM-VI0Ft&q=85&s=51440784b80ef5c7d1cd251e15af7682" alt="Dashboard > Forms > Use Cases > Form" data-og-width="1234" width="1234" data-og-height="371" height="371" data-path="docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/nooJ_hvpLM-VI0Ft/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=280&fit=max&auto=format&n=nooJ_hvpLM-VI0Ft&q=85&s=f98593df6a5717595e5733e8a664f874 280w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/nooJ_hvpLM-VI0Ft/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=560&fit=max&auto=format&n=nooJ_hvpLM-VI0Ft&q=85&s=87c4e404127b34ceb5c0d1dbfcd21b18 560w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/nooJ_hvpLM-VI0Ft/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=840&fit=max&auto=format&n=nooJ_hvpLM-VI0Ft&q=85&s=8bbd019f362b3af512b7d71fcf7f0dfc 840w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/nooJ_hvpLM-VI0Ft/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1100&fit=max&auto=format&n=nooJ_hvpLM-VI0Ft&q=85&s=89bc2eb59885c9f7d7abea2f689589c3 1100w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/nooJ_hvpLM-VI0Ft/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1650&fit=max&auto=format&n=nooJ_hvpLM-VI0Ft&q=85&s=c55dcdb36738db2ef820ff32cf3e3784 1650w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/nooJ_hvpLM-VI0Ft/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=2500&fit=max&auto=format&n=nooJ_hvpLM-VI0Ft&q=85&s=367d7f87fe8b922b986337491962dd07 2500w" />
</Frame>

### ステップノードを構成する

ステップノードはユーザーに表示されるグラフィカルインターフェイスです。次の手順に従って、ステップノードに[フィールド](/docs/ja-jp/customize/forms/nodes-and-components)を追加し、ユーザーの会社名と役職の値を収集します。

1. **［Components menu（コンポーネントメニュー）］** から **［Rich text（リッチテキスト）］** フィールドを **Step（ステップ）** ノードにドラッグします。

   * **Rich text（リッチテキスト）** ：カスタムメッセージを入力します。

     * **例** ：`Complete your profile! We need you to complete your profile to personalize your experience.`（プロファイルの完成！エクスペリエンスをパーソナライズするには、プロファイルを完成させる必要があります。）
   * **［Save（保存）］** を選択します。
2. **Text（テキスト）** フィールドを **Step（ステップ）** ノードにドラッグします。

   * **Id** ：`company_name`を入力します。
   * **Label（ラベル）** ：チェックボックスを有効にします。
   * **Label（ラベル）** ：`Company name`（会社名）を入力します。
   * **Required（必須）** ：チェックボックスを有効にします。
   * **［Save（保存）］** を選択します。
3. **Text（テキスト）** フィールドを **Step（ステップ）** ノードにドラッグします。

   1. **Id** ：`job_title`を入力します。
   2. **Label（ラベル）** ：`Job title`（役職）を入力します。
   3. **Label（ラベル）** ：チェックボックスを有効にします。
   4. **Required（必須）** ：チェックボックスを有効にします。
   5. **［Save（保存）］** を選択します。
4. **［Publish（公開）］** を選択して保存します。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=fa394770a3f7ceec7e24ba7386640eb6" alt="Dashboard > Actions > Forms > Form > Step node" data-og-width="1404" width="1404" data-og-height="533" height="533" data-path="docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=280&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=18aa4cead3d752e7847b30b83b024938 280w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=560&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=9d42da8e943051a6c4ecc86b1749c184 560w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=840&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=a09da400dcdb0b5cfeb31560e24d2900 840w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=1100&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=4aa09bcde9f8a8da3d44eac83c87beb0 1100w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=1650&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=506f82b214e0dad3bc7513af4fac8bee 1650w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=2500&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=89c738dd8eb86ab2055c4db907b717fd 2500w" />
</Frame>

### フローノードを構成する

以下の手順に従って、 **Step（ステップ）** ノードの後に​​ **Flow（フロー）** ノードを追加し、`user_metadata`を更新して認証フローを再開します。

1. フォームエディターの下にある **［Flow（フロー）］** を選択します。
2. **Step（ステップ）** ノードと **Ending Screen（終了画面）** ノードの間にある既存のリンクを削除します。
3. 新たに **［Flow（フロー）］** \&gt **［Click to add a flow（クリックしてフローを追加する）］** > **［Create a new flow（新しいフローを作成する）］** を選択します。

   * **［Name（名前）］** フィールドに`Update user_metadata`（user\_metadata更新）と入力します。
   * **［Create（作成）］** を選択します。
   * **［Save（保存）］** を選択します。
4. 下の画像のように **Flow（フロー）** ノードを **Step（ステップ）** ノードと **Ending Screen（終了画面）** ノードにリンクします。
5. **［Publish（公開）］** を選択して保存します。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/GYZAKEscAMUCkJEc/docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?fit=max&auto=format&n=GYZAKEscAMUCkJEc&q=85&s=503c134f3e205286fcac612c736b8ef6" alt="Dashboard > Actions > Forms > Form" data-og-width="1404" width="1404" data-og-height="540" height="540" data-path="docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/GYZAKEscAMUCkJEc/docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=280&fit=max&auto=format&n=GYZAKEscAMUCkJEc&q=85&s=31c76cb6d3a22f265defd7a0a41fc95e 280w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/GYZAKEscAMUCkJEc/docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=560&fit=max&auto=format&n=GYZAKEscAMUCkJEc&q=85&s=1dd90684fa764bf3777200aa73464a7b 560w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/GYZAKEscAMUCkJEc/docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=840&fit=max&auto=format&n=GYZAKEscAMUCkJEc&q=85&s=c01cf9cc18bcd5820e51a42460c4d0b7 840w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/GYZAKEscAMUCkJEc/docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=1100&fit=max&auto=format&n=GYZAKEscAMUCkJEc&q=85&s=0144d14f3b4e582285ddb25ce3ecd369 1100w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/GYZAKEscAMUCkJEc/docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=1650&fit=max&auto=format&n=GYZAKEscAMUCkJEc&q=85&s=def6e8cf333a00ed2613992f4311d6e0 1650w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/GYZAKEscAMUCkJEc/docs/images/ja-jp/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=2500&fit=max&auto=format&n=GYZAKEscAMUCkJEc&q=85&s=a07d04a8c9ad38afd4229fa4589a6943 2500w" />
</Frame>

Auth0ユーザー更新アクションをフローに追加するには、次の手順に従います。

1. **［Update user\_metadata（user\_metadata更新）］** フローを選択してから **［Edit flow（フローの編集）］** を選択し、新しいタブにフローエディターを開きます。
2. アクションの **［Start（開始）］** の下にある **［+］** アイコンを選択し、 **Update user（ユーザー更新）** アクションを追加します。以下のフィールドに入力して、 **［Save（保存）］** を選択します。

   * **Connection（接続）** ：ドロップダウンからM2MアプリケーションへのVault接続を選択します。

   * **User ID（ユーザーID）** ：`{{context.user.user_id}}`と入力します。

   * **Body（ボディー）** ：以下のコードをコピーして貼り付け、`job_title`と`company_name`のプロパティを含むuser\_metadataを更新します。

     ```json lines theme={null}
      {
         "user_metadata": {
            "job_title": "{{fields.job_title}}",
            "company_name": "{{fields.company_name}}"
         }
      }
     ```

   * **［Save（保存）］** を選択します。
3. **［Publish（公開）］** を選択して保存します。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=a9dfbe6b1657b2597d77a49d95015f43" alt="Dashboard > Actions > Forms > Flows" data-og-width="1404" width="1404" data-og-height="244" height="244" data-path="docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=280&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=03d94ab1368d25ae9b7c153d009e3d54 280w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=560&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=c8d7e566249bf7b3f920ba30e6787db7 560w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=840&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=07a1079e89d09b0614297e29801af852 840w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=1100&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=2b4e1e0f7ee0d31469af5dff6483032d 1100w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=1650&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=6f1e12aa97db90e7ac06b978463484b9 1650w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/8ya5u7bLdSC00LoT/docs/images/ja-jp/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=2500&fit=max&auto=format&n=8ya5u7bLdSC00LoT&q=85&s=574d2af7c5c200c2c55ca0629822928d 2500w" />
</Frame>

### フォームのレンダーコードを取得する

フォームのレンダーコードを取得して、カスタムのログイン後アクションでフォームを視覚的にレンダリングするには、以下の手順に従います。

* フォームエディターから **［Render（レンダー）］** を選択します。
* **［Copy（コピー）］** を選択します。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/-kILYX5qFC_2_UXb/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?fit=max&auto=format&n=-kILYX5qFC_2_UXb&q=85&s=8000f49a3441dd30b0da962272786532" alt="Dashboard > Actions > Forms > Form > Embed" data-og-width="1400" width="1400" data-og-height="848" height="848" data-path="docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/-kILYX5qFC_2_UXb/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=280&fit=max&auto=format&n=-kILYX5qFC_2_UXb&q=85&s=def461153f54fa79523f789530a85a74 280w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/-kILYX5qFC_2_UXb/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=560&fit=max&auto=format&n=-kILYX5qFC_2_UXb&q=85&s=7d5b64b6752cfd4520f1628b6993c287 560w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/-kILYX5qFC_2_UXb/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=840&fit=max&auto=format&n=-kILYX5qFC_2_UXb&q=85&s=e1991146bff24e0ce5f6cc11215cc865 840w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/-kILYX5qFC_2_UXb/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1100&fit=max&auto=format&n=-kILYX5qFC_2_UXb&q=85&s=2d8525a9259597bb420485bb297dfad0 1100w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/-kILYX5qFC_2_UXb/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1650&fit=max&auto=format&n=-kILYX5qFC_2_UXb&q=85&s=e2309a1c6af867e1511a0897eb702f1a 1650w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/-kILYX5qFC_2_UXb/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=2500&fit=max&auto=format&n=-kILYX5qFC_2_UXb&q=85&s=a0486c0a4f01a599e6793a3f98fe8d2a 2500w" />
</Frame>

## ログイン後のアクションを作成する

ログイン後のアクションを作成してフォームをレンダリングするには、次の手順に従います。

1. **［Auth0 Dashboard（Auth0ダッシュボード）］>［Actions（アクション）］>［Flows（フロー）］>［Login（ログイン）］** に移動します。
2. **［+］** アイコンを選択し、 **［Build from scratch（初めから構築する）］** を選択します。

   * **Name（名前）** ：`Render Progressive Profile Form`（プログレッシブプロファイルフォームのレンダリング）と入力します。
   * **Trigger（トリガー）** ：［`Login / Post Login`（ログイン/ログイン後）］を選択します。
   * **Runtime（ランタイム）** ：推奨バージョンを選択します。
3. **［Create（作成）］** を選択します。

ログイン後のアクションを構成するには、以下を行います。

1. 既存のコードをコードエディターから削除します。

2. フォームの埋め込みコードをコードエディターに貼り付けます。

3. コードを編集して、フォームをレンダリングする条件ロジックを定義します。

   ```javascript lines theme={null}
   /**
   * @param {Event} event - Details about the user and the context in which they are logging in.
   * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
   */
   exports.onExecutePostLogin = async (event, api) => {
     const FORM_ID = 'REPLACE_WITH_YOUR_FORM_ID';

     if (
       event.stats.logins_count > 2 &&
       !event.user.user_metadata.company_name &&
       !event.user.user_metadata.job_title
     ) {
       api.prompt.render(FORM_ID);
     }
   }

   exports.onContinuePostLogin = async (event, api) => { }
   ```

   <Callout icon="file-lines" color="#0EA5E9" iconType="regular">
     上の例にあるコードでは、ユーザーのログイン回数が3以上で、ユーザーのメタデータにcompany\_nameプロパティとjob\_titleプロパティがない場合にフォームが表示されます。
   </Callout>

4. **［Deploy（デプロイ）］** を選択します。

5. **Render Progressive Profile Form（プログレッシブプロファイルフォームのレンダリング）** アクションを **Login（ログイン）** フローにドラッグ＆ドロップします。

   <Frame>
     <img src="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/Q7oKDDW-Oc-rE1ZA/docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?fit=max&auto=format&n=Q7oKDDW-Oc-rE1ZA&q=85&s=1d8f0c6d173dbb45b374800a17583999" alt="Dashboard > Forms > Use Cases Progressive Profile Login Action" data-og-width="1079" width="1079" data-og-height="524" height="524" data-path="docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/Q7oKDDW-Oc-rE1ZA/docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=280&fit=max&auto=format&n=Q7oKDDW-Oc-rE1ZA&q=85&s=6464c09f347c7c3b77047e94a32534ce 280w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/Q7oKDDW-Oc-rE1ZA/docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=560&fit=max&auto=format&n=Q7oKDDW-Oc-rE1ZA&q=85&s=81535fc125ee6e7ed667a6ae4965d0d6 560w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/Q7oKDDW-Oc-rE1ZA/docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=840&fit=max&auto=format&n=Q7oKDDW-Oc-rE1ZA&q=85&s=0cf5e92b9fb37dd36c19eca1ef01203e 840w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/Q7oKDDW-Oc-rE1ZA/docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=1100&fit=max&auto=format&n=Q7oKDDW-Oc-rE1ZA&q=85&s=5818950e23f10db4aa6a12b19233db95 1100w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/Q7oKDDW-Oc-rE1ZA/docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=1650&fit=max&auto=format&n=Q7oKDDW-Oc-rE1ZA&q=85&s=0598fd93e25d6710ad8bd6c1b51e7db1 1650w, https://mintcdn.com/docs-staging-feat-docs-5569-member-mgmt/Q7oKDDW-Oc-rE1ZA/docs/images/ja-jp/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=2500&fit=max&auto=format&n=Q7oKDDW-Oc-rE1ZA&q=85&s=24d36636168d384feca8b930115d8cda 2500w" />
   </Frame>

6. **［Apply（適用）］** を選択します。

### 実装をテストする

次の手順に従って実装をテストします。

1. ログインを3回以上実行済みで、`user_metadata`属性の`company_name`と`job_title`に値がない既存のユーザーでログインします。
2. ログインフローのログイン後アクションがフォームをレンダリングして、情報の入力を求めます。
3. **［Auth0 Dashboard］>［User Management（ユーザー管理）］>［Users（ユーザー）］** に移動し、ユーザーを見つけて、`user_metadata`属性の`company_name`と`job_title`に情報が含まれていることを確認します。
