> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-feat-docs-5607-tenant-acl.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-feat-docs-5607-tenant-acl/NyIer7H7buorsMhh/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?fit=max&auto=format&n=NyIer7H7buorsMhh&q=85&s=19f72195f02352d12d52957a9cd7a041" 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-feat-docs-5607-tenant-acl/NyIer7H7buorsMhh/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=280&fit=max&auto=format&n=NyIer7H7buorsMhh&q=85&s=42d2a3ef8a69c467862ccb1f6548ccba 280w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/NyIer7H7buorsMhh/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=560&fit=max&auto=format&n=NyIer7H7buorsMhh&q=85&s=b426b4bd466080b24d2c196aa5e6ee8d 560w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/NyIer7H7buorsMhh/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=840&fit=max&auto=format&n=NyIer7H7buorsMhh&q=85&s=f22199b5cf896f6d49bb859588feddd9 840w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/NyIer7H7buorsMhh/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1100&fit=max&auto=format&n=NyIer7H7buorsMhh&q=85&s=f86561e43aa76ce0588a31a457099082 1100w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/NyIer7H7buorsMhh/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1650&fit=max&auto=format&n=NyIer7H7buorsMhh&q=85&s=5bf67dfafce5322a31d1e776ab6a2ec2 1650w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/NyIer7H7buorsMhh/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=2500&fit=max&auto=format&n=NyIer7H7buorsMhh&q=85&s=0dbebf4926b4d36fbe33da8aae453ed6 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-feat-docs-5607-tenant-acl/VeBiAmxvSLRiWOBQ/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?fit=max&auto=format&n=VeBiAmxvSLRiWOBQ&q=85&s=9aef7c73d32a1c5671ea29185c41161a" 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-feat-docs-5607-tenant-acl/VeBiAmxvSLRiWOBQ/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=280&fit=max&auto=format&n=VeBiAmxvSLRiWOBQ&q=85&s=8ac950a86b32e41843dd10fae45bd3d1 280w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/VeBiAmxvSLRiWOBQ/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=560&fit=max&auto=format&n=VeBiAmxvSLRiWOBQ&q=85&s=bd1b108dff686b227f1e721c23f8150e 560w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/VeBiAmxvSLRiWOBQ/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=840&fit=max&auto=format&n=VeBiAmxvSLRiWOBQ&q=85&s=35c2b041fefd1cdba1eadb40a65a5905 840w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/VeBiAmxvSLRiWOBQ/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1100&fit=max&auto=format&n=VeBiAmxvSLRiWOBQ&q=85&s=24a8da3cae21d837ba0fc40e3298650d 1100w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/VeBiAmxvSLRiWOBQ/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1650&fit=max&auto=format&n=VeBiAmxvSLRiWOBQ&q=85&s=028cecbd5d4c84de50df1a7e76d371b8 1650w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/VeBiAmxvSLRiWOBQ/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=2500&fit=max&auto=format&n=VeBiAmxvSLRiWOBQ&q=85&s=3ffaf2aeb26261d2d5b82aad6fa1724b 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-feat-docs-5607-tenant-acl/9n22KDYcK2jQtoGR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?fit=max&auto=format&n=9n22KDYcK2jQtoGR&q=85&s=aea1f38074b51b97fb2342252adce002" 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-feat-docs-5607-tenant-acl/9n22KDYcK2jQtoGR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=280&fit=max&auto=format&n=9n22KDYcK2jQtoGR&q=85&s=3afd5f92128e9304cdc3d70166b68103 280w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/9n22KDYcK2jQtoGR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=560&fit=max&auto=format&n=9n22KDYcK2jQtoGR&q=85&s=40a9c1e72993fe526d4ce617487ea1b2 560w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/9n22KDYcK2jQtoGR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=840&fit=max&auto=format&n=9n22KDYcK2jQtoGR&q=85&s=5c2ee077768cee372acd253bb7d2a131 840w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/9n22KDYcK2jQtoGR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1100&fit=max&auto=format&n=9n22KDYcK2jQtoGR&q=85&s=6f6a1e2bdab7df59caccac725346cb52 1100w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/9n22KDYcK2jQtoGR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1650&fit=max&auto=format&n=9n22KDYcK2jQtoGR&q=85&s=3781e601a62d873be1113283117e8598 1650w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/9n22KDYcK2jQtoGR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=2500&fit=max&auto=format&n=9n22KDYcK2jQtoGR&q=85&s=b15f0ed4b475239886463aeaa91402d1 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-feat-docs-5607-tenant-acl/et5jRBz-GsQQ58zS/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?fit=max&auto=format&n=et5jRBz-GsQQ58zS&q=85&s=859f9af465e8864ba109141f022011a4" 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-feat-docs-5607-tenant-acl/et5jRBz-GsQQ58zS/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=280&fit=max&auto=format&n=et5jRBz-GsQQ58zS&q=85&s=4d2b572b6e09f6ad5cb3f0fb893122cb 280w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/et5jRBz-GsQQ58zS/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=560&fit=max&auto=format&n=et5jRBz-GsQQ58zS&q=85&s=03fbb721ce1ea54f5f442f587b4bcbec 560w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/et5jRBz-GsQQ58zS/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=840&fit=max&auto=format&n=et5jRBz-GsQQ58zS&q=85&s=1c0da6302092d78db59d0a686a9ea529 840w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/et5jRBz-GsQQ58zS/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1100&fit=max&auto=format&n=et5jRBz-GsQQ58zS&q=85&s=6b5bcaf674f4cae509ddffbabf0de10b 1100w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/et5jRBz-GsQQ58zS/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1650&fit=max&auto=format&n=et5jRBz-GsQQ58zS&q=85&s=1c770de70136006af1bfd386f2448b24 1650w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/et5jRBz-GsQQ58zS/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=2500&fit=max&auto=format&n=et5jRBz-GsQQ58zS&q=85&s=40ce1d3b070af3359281ce1ae86ce50c 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-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=e00d873c918e4629246e4c57f77ae5eb" 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-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=280&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=778751d388fe32d3f985327cfb0a9f2f 280w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=560&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=bf478c0a3f1fe3651e70ec9a8e31960f 560w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=840&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=20643e3d8d318eb926734308b6f888e9 840w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1100&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=b2f31752fb37ab16cb0275f1c66629a8 1100w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1650&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=bcf3f1aaa5fd0817dba0ea8db536c3f9 1650w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=2500&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=7c21313906df564df19be299141dd56a 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-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=2437e76156ab4b7f03eb6562a9766b59" 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-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=280&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=98b4bb37756498fd58cacce057ee6ba5 280w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=560&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=4920cd1799b1771e8464ae59d96ab3e3 560w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=840&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=a44bb2288ef03b17a352e619c27e94fe 840w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1100&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=fa2b9c90fbcb257300536833dc9dabf4 1100w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1650&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=1dfe90758641a500896be0de3cb36624 1650w, https://mintcdn.com/docs-dev-feat-docs-5607-tenant-acl/j9Ibe-tdBc1sfin0/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=2500&fit=max&auto=format&n=j9Ibe-tdBc1sfin0&q=85&s=0635b30331d063d72742856e0b7c2848 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.
