> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-feat-anonymous-sessions.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-dev-feat-anonymous-sessions/wa2OS7U_uzBocnMy/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?fit=max&auto=format&n=wa2OS7U_uzBocnMy&q=85&s=06ba234c5859ae4b6b740a2cbd313139" 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-dev-feat-anonymous-sessions/wa2OS7U_uzBocnMy/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=280&fit=max&auto=format&n=wa2OS7U_uzBocnMy&q=85&s=41bc6ac6365693640dbd0efaef16cbd9 280w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/wa2OS7U_uzBocnMy/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=560&fit=max&auto=format&n=wa2OS7U_uzBocnMy&q=85&s=bbb4be02a63debe5591f0043cfabd088 560w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/wa2OS7U_uzBocnMy/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=840&fit=max&auto=format&n=wa2OS7U_uzBocnMy&q=85&s=efcc898f319d0f9b787e58865ffc4880 840w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/wa2OS7U_uzBocnMy/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1100&fit=max&auto=format&n=wa2OS7U_uzBocnMy&q=85&s=f9a8a95bab4d0c36e7ae69ad9da809a6 1100w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/wa2OS7U_uzBocnMy/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1650&fit=max&auto=format&n=wa2OS7U_uzBocnMy&q=85&s=52ae13fccdc917cb2c17f308be59246e 1650w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/wa2OS7U_uzBocnMy/docs/images/ja-jp/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=2500&fit=max&auto=format&n=wa2OS7U_uzBocnMy&q=85&s=0c2b1b74b71b91ad7988ad05954a471b 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-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=28c7779de2c2a24ba7308ac8cd4b3a36" 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-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=280&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=728f1f0bb1d33db426e2225acaec9d0b 280w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=560&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=deaaeee7fc9ae83cdd0c341a770f8da7 560w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=840&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=aabacf5ec2a03de7e2002ece7e9d1716 840w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1100&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=7dd26d6ea6ebfe457910907d02a437e4 1100w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1650&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=df7e08be3dd981cbc04457e79bff63b6 1650w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=2500&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=1a4e7a130ac9c71fd4476c03af4a20c8 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-dev-feat-anonymous-sessions/0sZ3KUYU27-CoXA2/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?fit=max&auto=format&n=0sZ3KUYU27-CoXA2&q=85&s=cd877a960d372b073ad0866cc991ea44" 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-dev-feat-anonymous-sessions/0sZ3KUYU27-CoXA2/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=280&fit=max&auto=format&n=0sZ3KUYU27-CoXA2&q=85&s=7c21ba8ae7e2f0a0438e29da1712ae72 280w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/0sZ3KUYU27-CoXA2/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=560&fit=max&auto=format&n=0sZ3KUYU27-CoXA2&q=85&s=c50d1eb4a3ee2bb3966e7508179f77d0 560w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/0sZ3KUYU27-CoXA2/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=840&fit=max&auto=format&n=0sZ3KUYU27-CoXA2&q=85&s=8f39a1c7b639957df0f30bd62098959d 840w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/0sZ3KUYU27-CoXA2/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1100&fit=max&auto=format&n=0sZ3KUYU27-CoXA2&q=85&s=50dd437da43d817568c51f22799adaf9 1100w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/0sZ3KUYU27-CoXA2/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1650&fit=max&auto=format&n=0sZ3KUYU27-CoXA2&q=85&s=417589d460830ac8f1ed786e7fa7f520 1650w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/0sZ3KUYU27-CoXA2/docs/images/ja-jp/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=2500&fit=max&auto=format&n=0sZ3KUYU27-CoXA2&q=85&s=3f8de98c52e3d2a794b2042f3e99359b 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-dev-feat-anonymous-sessions/L3Ut1w2mihS7_hbA/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?fit=max&auto=format&n=L3Ut1w2mihS7_hbA&q=85&s=1040210e960be0ebbbe0f1b39c59c050" 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-dev-feat-anonymous-sessions/L3Ut1w2mihS7_hbA/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=280&fit=max&auto=format&n=L3Ut1w2mihS7_hbA&q=85&s=f775445e0a19bc0a9d488eaa829b964f 280w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/L3Ut1w2mihS7_hbA/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=560&fit=max&auto=format&n=L3Ut1w2mihS7_hbA&q=85&s=6dcac62bb19431fdaf18112875ae7a42 560w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/L3Ut1w2mihS7_hbA/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=840&fit=max&auto=format&n=L3Ut1w2mihS7_hbA&q=85&s=c72075568a2bc2867826209971982281 840w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/L3Ut1w2mihS7_hbA/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1100&fit=max&auto=format&n=L3Ut1w2mihS7_hbA&q=85&s=da36038c151e835ad6146026db6109a1 1100w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/L3Ut1w2mihS7_hbA/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1650&fit=max&auto=format&n=L3Ut1w2mihS7_hbA&q=85&s=d55a3a0293b090de3abc5825550611f5 1650w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/L3Ut1w2mihS7_hbA/docs/images/ja-jp/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=2500&fit=max&auto=format&n=L3Ut1w2mihS7_hbA&q=85&s=41fd800a78fd950a19bc7ba117d1a70b 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-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=f2663258f72397341b474adfd4d3f0ce" 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-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=280&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=c84bdf2b02da67c37a3668fe8613e67f 280w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=560&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=4d6f92145f2f08179a7cfaaf51ed2a51 560w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=840&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=df144707326580fac00a9c74df283d0b 840w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1100&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=5ada745b8ef6d660042b6e5ef5902472 1100w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1650&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=ce284e4302eb387906565e5e860c5601 1650w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/LUOrrTLu_N6Hrsy3/docs/images/ja-jp/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=2500&fit=max&auto=format&n=LUOrrTLu_N6Hrsy3&q=85&s=7c64d55d628f6aadca583326b1d41de2 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-dev-feat-anonymous-sessions/M8DyGmJa8xSsudz9/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?fit=max&auto=format&n=M8DyGmJa8xSsudz9&q=85&s=59eb0fadec97393973101c329c01bfc7" 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-dev-feat-anonymous-sessions/M8DyGmJa8xSsudz9/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=280&fit=max&auto=format&n=M8DyGmJa8xSsudz9&q=85&s=5f607ea4cbc176ebd60cd97fc19ce723 280w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/M8DyGmJa8xSsudz9/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=560&fit=max&auto=format&n=M8DyGmJa8xSsudz9&q=85&s=50c0a0808900f9219f78991965800816 560w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/M8DyGmJa8xSsudz9/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=840&fit=max&auto=format&n=M8DyGmJa8xSsudz9&q=85&s=5a412e945ec99deb57c947f30aa5f4a1 840w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/M8DyGmJa8xSsudz9/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1100&fit=max&auto=format&n=M8DyGmJa8xSsudz9&q=85&s=b33f9debec8199cda2a9e2c0aea6f3c4 1100w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/M8DyGmJa8xSsudz9/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1650&fit=max&auto=format&n=M8DyGmJa8xSsudz9&q=85&s=9a1e15adcf7745d5afabb4b84bf7808b 1650w, https://mintcdn.com/docs-dev-feat-anonymous-sessions/M8DyGmJa8xSsudz9/docs/images/ja-jp/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=2500&fit=max&auto=format&n=M8DyGmJa8xSsudz9&q=85&s=e8b21ffeb80b8363bb20ce110a575b56 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`が追加サインアップステップからの情報を含んでいることを検証します。
