> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-feat-one-trust-integration.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を使用すると、サインアップまたはログインフローに追加のステップを作成し、ユーザーがアプリケーションにアクセスできるようにする前にそれらのステップを必須にすることができます。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-one-trust-integration/g7NAxPoNzIKOrOXg/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?fit=max&auto=format&n=g7NAxPoNzIKOrOXg&q=85&s=11796ac4cbdd7a64743f1b314bbc14d4" alt="Dashboard > Actions > Forms > Use Case Custom Signup Form" data-og-width="1404" width="1404" data-og-height="520" height="520" data-path="docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-one-trust-integration/g7NAxPoNzIKOrOXg/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=280&fit=max&auto=format&n=g7NAxPoNzIKOrOXg&q=85&s=cf7a65c201ec7fcd56be2f4593a4141a 280w, https://mintcdn.com/docs-staging-feat-one-trust-integration/g7NAxPoNzIKOrOXg/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=560&fit=max&auto=format&n=g7NAxPoNzIKOrOXg&q=85&s=c2bdc839855eb5c5b515b0467196d172 560w, https://mintcdn.com/docs-staging-feat-one-trust-integration/g7NAxPoNzIKOrOXg/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=840&fit=max&auto=format&n=g7NAxPoNzIKOrOXg&q=85&s=c4710359f526e4fd187fd587d0fb5926 840w, https://mintcdn.com/docs-staging-feat-one-trust-integration/g7NAxPoNzIKOrOXg/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1100&fit=max&auto=format&n=g7NAxPoNzIKOrOXg&q=85&s=944808abfa3b1462fb862166165514e1 1100w, https://mintcdn.com/docs-staging-feat-one-trust-integration/g7NAxPoNzIKOrOXg/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1650&fit=max&auto=format&n=g7NAxPoNzIKOrOXg&q=85&s=5362ce7b0504dbedda53875ca2d31371 1650w, https://mintcdn.com/docs-staging-feat-one-trust-integration/g7NAxPoNzIKOrOXg/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=2500&fit=max&auto=format&n=g7NAxPoNzIKOrOXg&q=85&s=84278428cf9bf0ab9795c54889de4602 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-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=fee820cc97952e86d5d6a7614cf799f8" 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-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=280&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=8737faae8370e439eab061e0558e2f2d 280w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=560&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=13ea138216bcb44a93b9cf1daf1f77b6 560w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=840&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=a34a3f9f889bcf42c687f41893fa4a42 840w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1100&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=d4bf271adb8507b1da921e5912edd02f 1100w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1650&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=a5a469dd5deaf01a221e80c89e0d7238 1650w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=2500&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=7f7e3030046bbe67a8b8baa6ec1d023a 2500w" />
</Frame>

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

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

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

   * **［Rich text（リッチテキスト）］** ：カスタムメッセージを入力します。。
   * **［Save（保存）］** を選択します。
2. **［Text（テキスト）］** フィールドを **［Step（ステップ）］** ノードにドラッグします。

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

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

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-one-trust-integration/toLchma4ogP2Nawx/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?fit=max&auto=format&n=toLchma4ogP2Nawx&q=85&s=6b5d17834e5f0310cdecec897f04d464" alt="Dashboard > Actions > Forms > Use Case Custom Signup Steps Step node" data-og-width="1404" width="1404" data-og-height="466" height="466" data-path="docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-one-trust-integration/toLchma4ogP2Nawx/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=280&fit=max&auto=format&n=toLchma4ogP2Nawx&q=85&s=7bba1e932bfdc4d23f2e8c24b9571026 280w, https://mintcdn.com/docs-staging-feat-one-trust-integration/toLchma4ogP2Nawx/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=560&fit=max&auto=format&n=toLchma4ogP2Nawx&q=85&s=9616d40239b1d83b4481ec4db5ce62c2 560w, https://mintcdn.com/docs-staging-feat-one-trust-integration/toLchma4ogP2Nawx/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=840&fit=max&auto=format&n=toLchma4ogP2Nawx&q=85&s=164eac83213d84ebab3a59108415d2cc 840w, https://mintcdn.com/docs-staging-feat-one-trust-integration/toLchma4ogP2Nawx/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1100&fit=max&auto=format&n=toLchma4ogP2Nawx&q=85&s=e6ce2a5f6e4421b423fb6578c2054694 1100w, https://mintcdn.com/docs-staging-feat-one-trust-integration/toLchma4ogP2Nawx/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1650&fit=max&auto=format&n=toLchma4ogP2Nawx&q=85&s=024fda8b33f384d67c3d174b75b3fb59 1650w, https://mintcdn.com/docs-staging-feat-one-trust-integration/toLchma4ogP2Nawx/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=2500&fit=max&auto=format&n=toLchma4ogP2Nawx&q=85&s=5845a1edfdd855eee758da578dcf10ee 2500w" />
</Frame>

### フローノードの構成

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

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

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

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-one-trust-integration/Ku0Y5lgpZ4N6D15c/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?fit=max&auto=format&n=Ku0Y5lgpZ4N6D15c&q=85&s=0361d71c0dbde1bde6edd5dc427fc304" alt="Dashboard > Actions > Forms > Use Case Custom Signup Step Update User metadata flow" data-og-width="1404" width="1404" data-og-height="541" height="541" data-path="docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-one-trust-integration/Ku0Y5lgpZ4N6D15c/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=280&fit=max&auto=format&n=Ku0Y5lgpZ4N6D15c&q=85&s=0aca359b427048a94978d57ba0c86e3a 280w, https://mintcdn.com/docs-staging-feat-one-trust-integration/Ku0Y5lgpZ4N6D15c/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=560&fit=max&auto=format&n=Ku0Y5lgpZ4N6D15c&q=85&s=9298cd2b13e73d011516a2a932f80dd7 560w, https://mintcdn.com/docs-staging-feat-one-trust-integration/Ku0Y5lgpZ4N6D15c/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=840&fit=max&auto=format&n=Ku0Y5lgpZ4N6D15c&q=85&s=61c0a2a22a0663762572194b6d441879 840w, https://mintcdn.com/docs-staging-feat-one-trust-integration/Ku0Y5lgpZ4N6D15c/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1100&fit=max&auto=format&n=Ku0Y5lgpZ4N6D15c&q=85&s=9d475e890a02446abd7e71548add9179 1100w, https://mintcdn.com/docs-staging-feat-one-trust-integration/Ku0Y5lgpZ4N6D15c/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1650&fit=max&auto=format&n=Ku0Y5lgpZ4N6D15c&q=85&s=b3e270b2a48e7527225458051b014a60 1650w, https://mintcdn.com/docs-staging-feat-one-trust-integration/Ku0Y5lgpZ4N6D15c/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=2500&fit=max&auto=format&n=Ku0Y5lgpZ4N6D15c&q=85&s=69fc80751917c45361378e869a4ce09c 2500w" />
</Frame>

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

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

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

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

   * **［Body（ボディ）］** ：次のコードをコピーして貼り付け、`full_name`および`job_title`プロパティを使用してuser\_metadataを更新します。

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

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

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

次の手順に従って、フォームレンダーコードを取得して、カスタムのログイン後アクションを使ったフォームを視覚的にレンダリングします。

* Formディターから **`<>`［Render（レンダー）］** を選択します。
* **［Copy（コピー）］** を選択します。

<Frame>
  <img src="https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=6a3c5bc0058d07e7d7c97ca594ec0ea4" 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-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=280&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=cb3d702cd92a2042a2f91ea7798bb0ad 280w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=560&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=da96facfcfbd356f58882a5bbc8c8c0d 560w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=840&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=951eec6f8bbe7ba519d31208d33fe4fa 840w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1100&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=c60e53d2b55109757794432c7ef1b0e4 1100w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1650&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=4d45826c3d678a160e6eb464745c4d93 1650w, https://mintcdn.com/docs-staging-feat-one-trust-integration/AKMR-WYMzR1pWwlh/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=2500&fit=max&auto=format&n=AKMR-WYMzR1pWwlh&q=85&s=1873c20c11e4f145fec16e2ff9247acf 2500w" />
</Frame>

## ポストログインアクションの作成

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

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

   * **［Name（名前）］** ：`［Render Additional Signup 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.user.user_metadata.full_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">
     上の例にあるコードでは、ユーザーのメタデータにfull\_nameプロパティとjob\_titleプロパティがない場合にフォームが表示されます。
   </Callout>

4. **［Deploy（導入）］** を選択します。

5. **［Render Additional Signup Form（追加サインアップフォームのレンダリング）］** アクションを **［Login（ログイン）］** フローにドラッグ＆ドロップします。

   <Frame>
     <img src="https://mintcdn.com/docs-staging-feat-one-trust-integration/n4hQBFu3K4VVNsrB/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?fit=max&auto=format&n=n4hQBFu3K4VVNsrB&q=85&s=c2b0b04cc1e7700a5f8ea76ff04e68f1" alt="Dashboard > Forms > Use Cases Custom Signup Steps Login Flow" data-og-width="1473" width="1473" data-og-height="545" height="545" data-path="docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-feat-one-trust-integration/n4hQBFu3K4VVNsrB/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=280&fit=max&auto=format&n=n4hQBFu3K4VVNsrB&q=85&s=80dd8d82f4d827ab7262d61a24135164 280w, https://mintcdn.com/docs-staging-feat-one-trust-integration/n4hQBFu3K4VVNsrB/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=560&fit=max&auto=format&n=n4hQBFu3K4VVNsrB&q=85&s=a0bdb56be1e735a16b2f82724d0cefda 560w, https://mintcdn.com/docs-staging-feat-one-trust-integration/n4hQBFu3K4VVNsrB/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=840&fit=max&auto=format&n=n4hQBFu3K4VVNsrB&q=85&s=013897c5d28bdebd7569d131e0b6e761 840w, https://mintcdn.com/docs-staging-feat-one-trust-integration/n4hQBFu3K4VVNsrB/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1100&fit=max&auto=format&n=n4hQBFu3K4VVNsrB&q=85&s=6b387a86010419067eb7cb44bdd84d6a 1100w, https://mintcdn.com/docs-staging-feat-one-trust-integration/n4hQBFu3K4VVNsrB/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1650&fit=max&auto=format&n=n4hQBFu3K4VVNsrB&q=85&s=f4afe202972fac2c8c3b3cb498b7b692 1650w, https://mintcdn.com/docs-staging-feat-one-trust-integration/n4hQBFu3K4VVNsrB/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=2500&fit=max&auto=format&n=n4hQBFu3K4VVNsrB&q=85&s=9c9a0e5d11d05717a117f08bed84fdd7 2500w" />
   </Frame>

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

### 実装のテスト

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

* 新規ユーザーでアプリケーションにサインアップします。
* ログインフローのログイン後アクションでは、フォームがレンダリングされ、情報の入力が求められます。
* **［<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-jp/glossary?term=auth0-dashboard" tip="Auth0 Dashboard: サービスを構成するためのAuth0の主製品。" cta="用語集の表示">Auth0 Dashboard</Tooltip>（Auth0ダッシュボード）］>［User Management（ユーザー管理）］>［Users（ユーザー）］** を選択し、新しいユーザーを見つけ、その属性`full_name`および`job_title`が追加サインアップステップからの情報を含んでいることを検証します。
