> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-fix-tenant-logs-locale-nav.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cas d’utilisation : configurer des étapes d’inscription supplémentaire à l’aide de formulaires

> Apprenez à configurer des étapes d’inscription supplémentaires à l’aide des formulaires d’action.

<Card title="Avant de commencer">
  1. Créez une [application machine-machine](https://auth0.com/docs/get-started/auth0-overview/create-applications/machine-to-machine-apps) avec les permissions suivantes activées :

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

  2. Ajoutez une [Connexion au coffre-fort](/docs/fr-ca/customize/forms/vault) en utilisant les informations d’identification de l’application machine-machine (M-M).
</Card>

Les formulaires d’actions vous permettent de créer des étapes d’inscription supplémentaires pour vos flux d’inscription et de connexion et les rendre obligatoires pour l’accès des utilisateurs à votre application.

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=e7004263b2870d669760d82352c29fab" 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/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=280&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=2c8834b44ea36ce0370a68911fe4be6e 280w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=560&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=a0469087c5fda1c2150d979e13bf3595 560w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=840&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=6062fe2de79239c157c1c33b572590b8 840w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1100&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=8fd5917c69d29414d8f4b83771c709ee 1100w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1650&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=fabfebb46c9b1e1e30f64defbe2e8bdc 1650w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/TcOw3LoxsnygbXeS/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=2500&fit=max&auto=format&n=TcOw3LoxsnygbXeS&q=85&s=3f595d70eb071d1b4f81b6926ec275b7 2500w" />
</Frame>

Les sections suivantes expliquent comment créer des formulaires d’étapes d’inscription supplémentaires en utilisant les nœuds et les flux, ainsi que les étapes pour ajouter votre formulaire à une action [Post-connexion](/docs/fr-ca/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger).

## Créer un formulaire à partir de zéro

Suivez ces étapes pour créer un formulaire afin de recueillir des informations :

1. Ouvrez l’éditeur de formulaires en sélectionnant **Auth0 Dashboard (tableau de bord Auth0) > Actions > Forms (formulaires).**
2. Sélectionnez **Créer un formulaire** > **Commencer à partir de zéro**.

Par défaut, un nouveau formulaire contient un nœud Début, un nœud Étape et un nœud Éran fin.

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/SxD4X5vLe3tLtS35/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?fit=max&auto=format&n=SxD4X5vLe3tLtS35&q=85&s=19994c3d0b42b7c74d9dfc8c2af4602c" alt="Dashboard > Forms > Use Cases > Form" data-og-width="1234" width="1234" data-og-height="371" height="371" data-path="docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/SxD4X5vLe3tLtS35/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=280&fit=max&auto=format&n=SxD4X5vLe3tLtS35&q=85&s=9fe9200cd2c3271088c1d38c5e6f93cd 280w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/SxD4X5vLe3tLtS35/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=560&fit=max&auto=format&n=SxD4X5vLe3tLtS35&q=85&s=fb527b63846fdc8b3c3ca4f85670aff8 560w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/SxD4X5vLe3tLtS35/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=840&fit=max&auto=format&n=SxD4X5vLe3tLtS35&q=85&s=0996198ef88786f7061ffb2ad6fba09b 840w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/SxD4X5vLe3tLtS35/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1100&fit=max&auto=format&n=SxD4X5vLe3tLtS35&q=85&s=828b17d89725cb979b78cdfdbca1eb74 1100w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/SxD4X5vLe3tLtS35/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1650&fit=max&auto=format&n=SxD4X5vLe3tLtS35&q=85&s=da89d3a375bbae2ea3f02f458cb895bf 1650w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/SxD4X5vLe3tLtS35/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=2500&fit=max&auto=format&n=SxD4X5vLe3tLtS35&q=85&s=0bc6e03f08e4323a14ab3b34d4c44b28 2500w" />
</Frame>

### Configurer le nœud d’étape

Le nœud d’étape est l’interface graphique présentée aux utilisateurs. Ajoutez des [champs](/docs/fr-ca/customize/forms/nodes-and-components) au nœud d’étape pour collecter le nom complet de l’utilisateur et les valeurs d’intitulé de son poste en procédant comme suit :

1. Faites glisser un champ **Rich text (Texte enrichi)** depuis le **Components menu (Menu composants)** dans le nœud **d’étape**.

   * **Rich text (Texte enrichi)** : saisissez un message personnalisé.
   * Sélectionnez **Save (Enregistrer)**.
2. Faites glisser un champ **Text (Texte)** dans le nœud **Step (Étape)**.

   * **ID** : saisissez `full_name`.
   * **Label (Étiquette)** : saisissez `Full name`.
   * **Label (Étiquette)** : activez la case à cocher.
   * **Required (Requis)** : activez la case à cocher.
   * Sélectionnez **Save (Enregistrer)**.
3. Faites glisser un champ **Text (Texte)** dans le nœud **Step (Étape)**.

   * **ID** : saisissez `job_title`.
   * **Label (Étiquette)** : saisissez `Job title`.
   * **Label (Étiquette)** : activez la case à cocher.
   * **Required (Requis)** : activez la case à cocher.
   * Sélectionnez **Save (Enregistrer)**.
4. Sélectionnez **Publish (Publier)** pour enregistrer.

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/ZMrw-nL8Nz4K_zLT/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?fit=max&auto=format&n=ZMrw-nL8Nz4K_zLT&q=85&s=e227bca907887dbeab12036fd864b147" 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/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/ZMrw-nL8Nz4K_zLT/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=280&fit=max&auto=format&n=ZMrw-nL8Nz4K_zLT&q=85&s=75dadf52a49beee239df0129bf19af18 280w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/ZMrw-nL8Nz4K_zLT/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=560&fit=max&auto=format&n=ZMrw-nL8Nz4K_zLT&q=85&s=fc452af3badc4bd1324bbc38f998f49d 560w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/ZMrw-nL8Nz4K_zLT/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=840&fit=max&auto=format&n=ZMrw-nL8Nz4K_zLT&q=85&s=d9dfd8be1d6534bf20804c2fa01ee951 840w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/ZMrw-nL8Nz4K_zLT/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1100&fit=max&auto=format&n=ZMrw-nL8Nz4K_zLT&q=85&s=0b39ee75430d65e366ae456ea5aee6c1 1100w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/ZMrw-nL8Nz4K_zLT/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1650&fit=max&auto=format&n=ZMrw-nL8Nz4K_zLT&q=85&s=f6edd48ccb8fb36a3f6d92cbb0f159ba 1650w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/ZMrw-nL8Nz4K_zLT/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=2500&fit=max&auto=format&n=ZMrw-nL8Nz4K_zLT&q=85&s=d77695a43cddcfa419fb88aaa87088ef 2500w" />
</Frame>

### Configurer le nœud Flow (Flux)

Ajoutez un nœud **Flow (Flux)** après le nœud **Step (Étape)** pour mettre à jour les `user_metadata` et reprenez le flux d’authentification en procédant comme suit :

1. Sélectionnez **Flow (Flux)** en bas de Form Editor (Éditeur de formulaire).
2. Supprimez le lien existant entre les nœuds **Step (Étape)** et **Ending Screen (Écran de fin)**.
3. Sélectionnez le nouveau **Flow (Flux)** > **Click to add a flow (Cliquer pour ajouter un flux)** > **Create a new flow (Créer un nouveau flux).**

   * Saisissez `Update user_metadata (Mettre à jour user_metadata)` dans le champ **Name (Nom)**.
   * Sélectionnez **Create (Créer)**.
   * Sélectionnez **Save (Enregistrer)**.
4. Liez le nœud **Flow (Flux)** aux nœuds **Step (Étape)** et **Ending Screen (Écran de fin)** comme illustré ci-dessous.
5. Sélectionnez **Publish (Publier)** pour enregistrer.

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/1IltnGiCsKfSQz4A/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?fit=max&auto=format&n=1IltnGiCsKfSQz4A&q=85&s=248f13a44e15a71e79a8a8f3e59dd5d0" 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/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/1IltnGiCsKfSQz4A/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=280&fit=max&auto=format&n=1IltnGiCsKfSQz4A&q=85&s=82d87667cb396b407e0196b4e4839aa2 280w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/1IltnGiCsKfSQz4A/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=560&fit=max&auto=format&n=1IltnGiCsKfSQz4A&q=85&s=bd372ae674fe5cb6b94dd87740693510 560w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/1IltnGiCsKfSQz4A/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=840&fit=max&auto=format&n=1IltnGiCsKfSQz4A&q=85&s=97b9fb6c7c4d2628d1cb0c314aa36c3a 840w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/1IltnGiCsKfSQz4A/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1100&fit=max&auto=format&n=1IltnGiCsKfSQz4A&q=85&s=e23d095a05a7b8678ef8ac53e87793c6 1100w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/1IltnGiCsKfSQz4A/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1650&fit=max&auto=format&n=1IltnGiCsKfSQz4A&q=85&s=98101fbfa5d324e6a863aef447ce015e 1650w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/1IltnGiCsKfSQz4A/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=2500&fit=max&auto=format&n=1IltnGiCsKfSQz4A&q=85&s=3547969cbb59e45ae7a89da58f31aca9 2500w" />
</Frame>

Ajoutez une action de mise à jour d’utilisateur Auth0 au flux en suivant ces étapes :

1. Sélectionnez le **fluxUpdate user\_metadata (Mise à jour user\_metadata)** > **flux Edit (Modifier)** pour ouvrir l’éditeur de flux dans un nouvel onglet.
2. Sous l’action **Start (Démarrage)**, sélectionnez l’icône **+** pour ajouter une action **Update user (Mettre à jour l’utilisateur)**. Remplissez les champs ci-dessous, puis sélectionnez **Save (Enregistrer)** pour continuer.

   * **Connection** : dans la liste déroulante, sélectionnez la connexion au coffre-fort de votre application de communication entre machines.

   * **User ID** (ID utilisateur) : Saisissez `{{context.user.user_id}}`.

   * **Body (Corps)** : copiez et collez le code suivant pour mettre à jour les métadonnées utilisateur avec les propriétés `full_name` et `job_title`.

     ```
     {
       "user_metadata": {
         "full_name": "{{fields.full_name}}",
         "job_title": "{{fields.job_title}}"
       }
     }
     ```

   * Sélectionnez **Save (Enregistrer)**.
3. Sélectionnez Publish (Publier) pour enregistrer.

## Récupérer votre code de rendu

Récupérez votre code de rendu pour afficher visuellement le formulaire avec une action de post-connexion personnalisée en suivant ces étapes :

* Dans l’éditeur de formulaires, sélectionnez **\<> Render (Rendre)**.
* Sélectionnez **Copy (Copier)**.

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=7f589e57b68b2c3a26ec1dd5c38ebb95" alt="Dashboard > Actions > Forms > Form > Embed" data-og-width="1400" width="1400" data-og-height="848" height="848" data-path="docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=280&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=6794b1d62f0aa018d95a955272737755 280w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=560&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=acd986482b4ec2114d6c1295a483779b 560w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=840&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=479c6b90b8a7d4802079735e446ddfaa 840w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1100&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=051261acf532301bacc8c82dbb0d9849 1100w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1650&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=768b9125c5e86e9157bbc0e869cfa97a 1650w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=2500&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=e5bf598b94371e2e7ba814b387c41243 2500w" />
</Frame>

## Créer une action post-connexion

Créez une action post-connexion pour afficher votre formulaire en suivant ces étapes :

1. Naviguez vers **Auth0 Dashboard > Actions > Flows (Flux) > Login (Connexion).**
2. Sélectionnez l’icône **+**, puis **Build from scratch (Créer de A à Z)** :

   * **Name (Nom)** : saisissez `Render Additional Signup Form`.
   * **Trigger (Déclencheur)** : sélectionnez `Login / Post Login`.
   * **Runtime (Temps d’exécution)** : sélectionnez la version recommandée.
3. Sélectionnez **Create (Créer)**.

Pour configurer l’action post-connexion.

1. Supprimez le code existant dans l’éditeur de code.

2. Collez le code de rendu du formulaire dans l’éditeur de code.

3. Modifiez le code pour définir la logique conditionnelle d’affichage du formulaire.

   ```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">
     L’exemple de code ci-dessus affiche le formulaire lorsque les propriétés full\_name et job\_title des métadonnées de l’utilisateur sont manquantes.
   </Callout>

4. Sélectionnez **Deploy (Déployer)**.

5. Glissez-déposez l’action **Render Additional Signup Form (Rendre le formulaire d’inscription supplémentaire)** dans le flux **Login (Connexion)**.

   <Frame>
     <img src="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=78322b652a66b7e59b2abc1ca2ea44a0" 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/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=280&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=903be1801f76fce6c0d99bdd1b9208c7 280w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=560&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=d838ad87d3206b153c34c13d07501129 560w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=840&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=031d8df00814e796ba3983420bf936a9 840w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1100&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=103f79619915ffa1b9dfc9a207f6fdec 1100w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1650&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=87513a303f3af6cf141acf628fce9554 1650w, https://mintcdn.com/docs-dev-fix-tenant-logs-locale-nav/edbeP1bBH6XXdS_8/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=2500&fit=max&auto=format&n=edbeP1bBH6XXdS_8&q=85&s=a8eeae3fe4118283aa46a9e433b598c9 2500w" />
   </Frame>

6. Sélectionnez **Apply (Appliquer)**.

### Tester la mise en œuvre

Testez la mise en œuvre en procédant comme suit :

* Inscrivez-vous à une application en tant que nouvel utilisateur.
* L’action post-connexion dans le flux de connexion affichera le formulaire et demandera des informations.
* Sélectionnez **Auth0 Dashboard > User Management (Gestion des utilisateurs)> Users (Utilisateurs)**, localisez le nouvel utilisateur et vérifiez que ses attributs `full_name` et `job_title` contiennent les informations de l’étape d’inscription supplémentaire.
