> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-feat-docs-5554-self-service.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-5554-self-service/aQ2sIWlyMZFVXWJX/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?fit=max&auto=format&n=aQ2sIWlyMZFVXWJX&q=85&s=caf8dcb2ba9d84ade2134971b59cc321" 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-5554-self-service/aQ2sIWlyMZFVXWJX/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=280&fit=max&auto=format&n=aQ2sIWlyMZFVXWJX&q=85&s=5fd509e9e4374f40478148f574b574a7 280w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/aQ2sIWlyMZFVXWJX/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=560&fit=max&auto=format&n=aQ2sIWlyMZFVXWJX&q=85&s=5a9f1c2255682565824793606b18982d 560w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/aQ2sIWlyMZFVXWJX/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=840&fit=max&auto=format&n=aQ2sIWlyMZFVXWJX&q=85&s=337b581590f5790c866bcb9045c3a082 840w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/aQ2sIWlyMZFVXWJX/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1100&fit=max&auto=format&n=aQ2sIWlyMZFVXWJX&q=85&s=6fee5ceb45c395e442d8b582a7057634 1100w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/aQ2sIWlyMZFVXWJX/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=1650&fit=max&auto=format&n=aQ2sIWlyMZFVXWJX&q=85&s=57aabcc43f6c4a916eddef975c26b4dd 1650w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/aQ2sIWlyMZFVXWJX/docs/images/fr-ca/cdy7uua7fh8z/ZOQNi6SrEC9OREcBbdiJ3/d79f84fb61acd5473bdf932527e26d58/custom-signup-form.png?w=2500&fit=max&auto=format&n=aQ2sIWlyMZFVXWJX&q=85&s=137d3484db2c0407abc77959a3c75870 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-5554-self-service/0q-0OsXOcUZ51mQd/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?fit=max&auto=format&n=0q-0OsXOcUZ51mQd&q=85&s=6a81d4af9fd6d96b071e0bd9edaa668c" 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-5554-self-service/0q-0OsXOcUZ51mQd/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=280&fit=max&auto=format&n=0q-0OsXOcUZ51mQd&q=85&s=5ac4f48c14c8e19eeec8c2e475ce597f 280w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/0q-0OsXOcUZ51mQd/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=560&fit=max&auto=format&n=0q-0OsXOcUZ51mQd&q=85&s=85e36e19909be1e9fb27a81aa8256e4b 560w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/0q-0OsXOcUZ51mQd/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=840&fit=max&auto=format&n=0q-0OsXOcUZ51mQd&q=85&s=694776a61dc3fe090a5659179e6708f7 840w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/0q-0OsXOcUZ51mQd/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1100&fit=max&auto=format&n=0q-0OsXOcUZ51mQd&q=85&s=e35da351221dd18842724079385ca439 1100w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/0q-0OsXOcUZ51mQd/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1650&fit=max&auto=format&n=0q-0OsXOcUZ51mQd&q=85&s=e169b7368afa89516eb6a78b549177af 1650w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/0q-0OsXOcUZ51mQd/docs/images/fr-ca/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=2500&fit=max&auto=format&n=0q-0OsXOcUZ51mQd&q=85&s=9f3c5f64173c0b61827b337ce580da9d 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-5554-self-service/b4tvNV4fNql_a0MR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?fit=max&auto=format&n=b4tvNV4fNql_a0MR&q=85&s=5f72904a5214f2de7ea446c5bb455166" 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-5554-self-service/b4tvNV4fNql_a0MR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=280&fit=max&auto=format&n=b4tvNV4fNql_a0MR&q=85&s=21f80867045180ee695142f862d2b736 280w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/b4tvNV4fNql_a0MR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=560&fit=max&auto=format&n=b4tvNV4fNql_a0MR&q=85&s=0a11a5547a009e3502f4072be88b0775 560w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/b4tvNV4fNql_a0MR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=840&fit=max&auto=format&n=b4tvNV4fNql_a0MR&q=85&s=2dbd6eae32114b2a4895b7f3a59e51f0 840w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/b4tvNV4fNql_a0MR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1100&fit=max&auto=format&n=b4tvNV4fNql_a0MR&q=85&s=7dd396fd39a3fb4bc27b96c80cfafe8d 1100w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/b4tvNV4fNql_a0MR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=1650&fit=max&auto=format&n=b4tvNV4fNql_a0MR&q=85&s=21872fb4c1a7440f42d4b7bb0eca6f0b 1650w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/b4tvNV4fNql_a0MR/docs/images/fr-ca/cdy7uua7fh8z/6Kcn0ai9fsVsqHwZpTGByG/37cbf4ffee63a7010926b15f06dd20ac/custom-signup-step-node.png?w=2500&fit=max&auto=format&n=b4tvNV4fNql_a0MR&q=85&s=184116620ebb0e8761987d62ae864a62 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-5554-self-service/pwnYJCZCj4QG2KhW/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?fit=max&auto=format&n=pwnYJCZCj4QG2KhW&q=85&s=60a6fab3a0f36a6b761aba458056d984" 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-5554-self-service/pwnYJCZCj4QG2KhW/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=280&fit=max&auto=format&n=pwnYJCZCj4QG2KhW&q=85&s=138e2fbd30b278262bb01f440413e7db 280w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/pwnYJCZCj4QG2KhW/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=560&fit=max&auto=format&n=pwnYJCZCj4QG2KhW&q=85&s=7078cb8fb99a377c55959056894ae635 560w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/pwnYJCZCj4QG2KhW/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=840&fit=max&auto=format&n=pwnYJCZCj4QG2KhW&q=85&s=2f74e5d089ec691e1548abae0fbe616e 840w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/pwnYJCZCj4QG2KhW/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1100&fit=max&auto=format&n=pwnYJCZCj4QG2KhW&q=85&s=ceb102d7e2da19bccd87dcb79fa400f6 1100w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/pwnYJCZCj4QG2KhW/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=1650&fit=max&auto=format&n=pwnYJCZCj4QG2KhW&q=85&s=149bec423dffacbfff915c99a38c733e 1650w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/pwnYJCZCj4QG2KhW/docs/images/fr-ca/cdy7uua7fh8z/4nTdYdA2Hu5vK65smkdvJg/db3294ebc25a7c2636be96362a3ea56e/custom-signup-step-flow.png?w=2500&fit=max&auto=format&n=pwnYJCZCj4QG2KhW&q=85&s=fe53605286baff7bcc40f4909ae4c663 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-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=97efb492450580f7f6b5e5f3290078b3" 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-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=280&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=8b0834af38faa815e9b74f83065a70ef 280w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=560&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=e4115f012d378371f1d0073b69c598b8 560w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=840&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=0f4e0b3b06042e383a08416b73825538 840w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1100&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=864966c906eab70b2b4b31a75d81b3d4 1100w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1650&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=f40a5a26b0819d71e684d57e2bbd675c 1650w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=2500&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=b80aff8e952fcf75af1e08ad4ec8e898 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-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=ac7005155c9761c873b3a11dd79a07a8" 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-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=280&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=679f5938ff3f74846b1c2de0167a310b 280w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=560&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=2d008cbb1c8fbcab4800a00b1fe86001 560w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=840&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=909abd9c23cbe951abba17743b3af83f 840w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1100&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=65dc7abeba03626ae601fe8d1a0a5b81 1100w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=1650&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=238e258f479a9402e7732fa9a48fe6e9 1650w, https://mintcdn.com/docs-dev-feat-docs-5554-self-service/gdpqo4qI4_OvQiri/docs/images/fr-ca/cdy7uua7fh8z/1WBOicIOcH98hKj6Lq9HF2/4951e30a0cc08c7c5daa0116eaa17e11/Screenshot_2024-03-01_at_15.48.00.png?w=2500&fit=max&auto=format&n=gdpqo4qI4_OvQiri&q=85&s=eae295ed48e5269b63ef0fef5d176639 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.
