> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-privilege-worker-scope-pinning.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn how to configure a progressive profile form using Forms for Actions

# Use Cases: Configure a progressive profile form using Forms

<Card title="Before you start">
  1. Create a [Machine-to-Machine Application](/docs/get-started/auth0-overview/create-applications/machine-to-machine-apps) with the following scopes enabled:

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

  2. Add a [Vault connection](/docs/customize/forms/vault) using the M2M application credentials.
</Card>

Forms for Actions allows you to create progressive profiling flows to decide when to prompt users to collect missing information, such as company name and job title, and store them as `user_metadata` attributes.

<Frame>
  <img src="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/Mpouu0xawDDzJn1A/docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?fit=max&auto=format&n=Mpouu0xawDDzJn1A&q=85&s=35fde7d7c8d3df02e9968f6f64a10133" alt="Dashboard > Actions > Forms > Form" data-og-width="1404" width="1404" data-og-height="638" height="638" data-path="docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/Mpouu0xawDDzJn1A/docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=280&fit=max&auto=format&n=Mpouu0xawDDzJn1A&q=85&s=1a042580cba3910e6a02fdc1f79bdf73 280w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/Mpouu0xawDDzJn1A/docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=560&fit=max&auto=format&n=Mpouu0xawDDzJn1A&q=85&s=2db21b441da48fd542c975f86ba31c0c 560w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/Mpouu0xawDDzJn1A/docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=840&fit=max&auto=format&n=Mpouu0xawDDzJn1A&q=85&s=dc2b58ebe72d3c0fce2840fc1c4adb74 840w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/Mpouu0xawDDzJn1A/docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=1100&fit=max&auto=format&n=Mpouu0xawDDzJn1A&q=85&s=8c2d0f89510719d4d93f80780f29e56b 1100w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/Mpouu0xawDDzJn1A/docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=1650&fit=max&auto=format&n=Mpouu0xawDDzJn1A&q=85&s=90972c1a77b8167a88993cbdc35968d0 1650w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/Mpouu0xawDDzJn1A/docs/images/cdy7uua7fh8z/xUx9YmnHvnAqL19JvNtNP/60dae88f893d4ebe8e3523421e960596/Progressive-profle-overview.png?w=2500&fit=max&auto=format&n=Mpouu0xawDDzJn1A&q=85&s=3bda66e325e4214739344edccf2350e2 2500w" />
</Frame>

The sections below outline how you can create a progressive profile form using nodes and flows, along with steps for adding your form to a [Post Login Action](/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger).

## Create a form from scratch

Follow these steps to create a form to gather information:

1. Open the Form editor by selecting **Auth0 Dashboard > Actions > Forms.**
2. Select **Create Form** > **Start from scratch**.

By default, a new form contains a Start node, a Step node, and an Ending screen node.

<Frame>
  <img src="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/4RptRaVXnzlDd5-f/docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?fit=max&auto=format&n=4RptRaVXnzlDd5-f&q=85&s=5d20ddce18922de0b6b439cf30745056" alt="Dashboard > Forms > Use Cases > Form" data-og-width="1234" width="1234" data-og-height="371" height="371" data-path="docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/4RptRaVXnzlDd5-f/docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=280&fit=max&auto=format&n=4RptRaVXnzlDd5-f&q=85&s=a81d9f42ca14b7d4d3bd8a02b0278a15 280w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/4RptRaVXnzlDd5-f/docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=560&fit=max&auto=format&n=4RptRaVXnzlDd5-f&q=85&s=93e302a351bcb90ed7496b9264dbf7b3 560w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/4RptRaVXnzlDd5-f/docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=840&fit=max&auto=format&n=4RptRaVXnzlDd5-f&q=85&s=553573a94fe64a2ba10635186381d6b0 840w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/4RptRaVXnzlDd5-f/docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1100&fit=max&auto=format&n=4RptRaVXnzlDd5-f&q=85&s=f9d8109ce23e18af03930146fd35e42f 1100w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/4RptRaVXnzlDd5-f/docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=1650&fit=max&auto=format&n=4RptRaVXnzlDd5-f&q=85&s=85c44bd367051887f9687e4379295ff0 1650w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/4RptRaVXnzlDd5-f/docs/images/cdy7uua7fh8z/2TZ9jSjgEcARFpULI6hz4R/a4319a1bd482f2ee5cc23100fdb2f42c/New-form-Forms-for-action-use-case.png?w=2500&fit=max&auto=format&n=4RptRaVXnzlDd5-f&q=85&s=7bd633ddf146a122c55370e1a0ad1174 2500w" />
</Frame>

### Configure the Step node

The Step node is the graphical interface visible to users. Add [Fields](/docs/customize/forms/nodes-and-components) to the Step node to collect the user's company name and job title values by following these steps:

1. Drag a **Rich text** field from the **Components menu** into the **Step** node.

   * **Rich text**: Enter a custom message.

     * **Example**: `Complete your profile! We need you to complete your profile to personalize your experience.`
   * Select **Save**.
2. Drag a **Text** field into the **Step** node.

   * **ID**: Enter `company_name`.
   * **Label**: Enable the checkbox.
   * **Label**: Enter `Company name`.
   * **Required**: Enable the checkbox.
   * Select **Save**.
3. Drag a **Text** field into the **Step** node.

   1. **ID**: Enter `job_title`.
   2. **Label**: Enter `Job title`.
   3. **Label**: Enable the checkbox.
   4. **Required**: Enable the checkbox.
   5. Select **Save**.
4. Select **Publish** to save.

<Frame>
  <img src="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/YEqAmD2GRQOBB7ji/docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?fit=max&auto=format&n=YEqAmD2GRQOBB7ji&q=85&s=9ea905861ba4720df5e9baaade65f95b" alt="Dashboard > Actions > Forms > Form > Step node" data-og-width="1404" width="1404" data-og-height="533" height="533" data-path="docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/YEqAmD2GRQOBB7ji/docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=280&fit=max&auto=format&n=YEqAmD2GRQOBB7ji&q=85&s=4f32f4ba7e62eb2fd4546e0a3b3f8ce1 280w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/YEqAmD2GRQOBB7ji/docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=560&fit=max&auto=format&n=YEqAmD2GRQOBB7ji&q=85&s=88239f04cf71b4709b073faddd52d604 560w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/YEqAmD2GRQOBB7ji/docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=840&fit=max&auto=format&n=YEqAmD2GRQOBB7ji&q=85&s=b4bd71d0a889e53452d0c8985886af6f 840w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/YEqAmD2GRQOBB7ji/docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=1100&fit=max&auto=format&n=YEqAmD2GRQOBB7ji&q=85&s=82b23b9ca95984207cd254362064b6d7 1100w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/YEqAmD2GRQOBB7ji/docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=1650&fit=max&auto=format&n=YEqAmD2GRQOBB7ji&q=85&s=a0b12d118bc4ebc844d9d3c659ae7184 1650w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/YEqAmD2GRQOBB7ji/docs/images/cdy7uua7fh8z/6H1lRzwKyYioQyQJ9MtIoM/aa248e92fc028a68a5b92ff361a11644/progressive-profile-step.png?w=2500&fit=max&auto=format&n=YEqAmD2GRQOBB7ji&q=85&s=690cda627cc9b0b2ef88cc6b267acb1d 2500w" />
</Frame>

### Configure the flow node

Add a **Flow** node after the **Step** node to update the `user_metadata` and resume the authentication flow by following these steps:

1. Select **Flow** from the bottom of the Form editor.
2. Remove the existing link between the **Step** and **Ending Screen** nodes.
3. Select the new **Flow** > **Click to add a flow** > **Create a new flow.**

   * Enter `Update user_metadata` in the **Name** field.
   * Select **Create**.
   * Select **Save**.
4. Link the **Flow** node to the **Step** and **Ending Screen** nodes as pictured below.
5. Select **Publish** to save.

<Frame>
  <img src="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/mOvixXqMLAbh7ZJe/docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?fit=max&auto=format&n=mOvixXqMLAbh7ZJe&q=85&s=e2968d457ce8ebda3ffd0d368c419260" alt="Dashboard > Actions > Forms > Form" data-og-width="1404" width="1404" data-og-height="540" height="540" data-path="docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/mOvixXqMLAbh7ZJe/docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=280&fit=max&auto=format&n=mOvixXqMLAbh7ZJe&q=85&s=746adbabf71445a45bc176d916be3f7d 280w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/mOvixXqMLAbh7ZJe/docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=560&fit=max&auto=format&n=mOvixXqMLAbh7ZJe&q=85&s=705947b40ad552191328a3751082b8e7 560w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/mOvixXqMLAbh7ZJe/docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=840&fit=max&auto=format&n=mOvixXqMLAbh7ZJe&q=85&s=31f039eee56961d122bf1a6d3c2192ed 840w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/mOvixXqMLAbh7ZJe/docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=1100&fit=max&auto=format&n=mOvixXqMLAbh7ZJe&q=85&s=bb8735d1bb134662138fec20a9ceac3e 1100w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/mOvixXqMLAbh7ZJe/docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=1650&fit=max&auto=format&n=mOvixXqMLAbh7ZJe&q=85&s=acecb19e2feeb200f416ab59f890bbf3 1650w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/mOvixXqMLAbh7ZJe/docs/images/cdy7uua7fh8z/5C91DaWn4LGtJT9BF87ssu/095171d0c452a287c44bfde12fd6d13f/link-nodes.png?w=2500&fit=max&auto=format&n=mOvixXqMLAbh7ZJe&q=85&s=665e7bd82a4333858175d378b11a74b4 2500w" />
</Frame>

Add an Auth0 Update user action to the flow by following these steps:

1. Select the **Update user\_metadata** flow, then select the **Edit Flow** to open the Flow editor in a new tab.
2. Below the **Start** action, select the **+** icon to add an **Update user** action. Complete the fields below, then select **Save** to continue.

   * **Connection**: Select from the dropdown the Vault connection to your M2M application.

   * **User ID**: Enter `{{context.user.user_id}}`.

   * **Body**: Copy and paste the following code to update the user\_metadata with `job_title` and `company_name` properties.

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

   * Select **Save**.
3. Select **Publish** to save.

<Frame>
  <img src="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qDZW1rlA9NxkJxo2/docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?fit=max&auto=format&n=qDZW1rlA9NxkJxo2&q=85&s=76578c480bd680327ac523a96258d451" alt="Dashboard > Actions > Forms > Flows" data-og-width="1404" width="1404" data-og-height="244" height="244" data-path="docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qDZW1rlA9NxkJxo2/docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=280&fit=max&auto=format&n=qDZW1rlA9NxkJxo2&q=85&s=86527087ef20f1f5c17193ef3b5cd9fb 280w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qDZW1rlA9NxkJxo2/docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=560&fit=max&auto=format&n=qDZW1rlA9NxkJxo2&q=85&s=0b40a5fb2c6af20117b3d417b38f46bb 560w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qDZW1rlA9NxkJxo2/docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=840&fit=max&auto=format&n=qDZW1rlA9NxkJxo2&q=85&s=b425dc6b01243ead2d0ce15e8c19a2fa 840w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qDZW1rlA9NxkJxo2/docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=1100&fit=max&auto=format&n=qDZW1rlA9NxkJxo2&q=85&s=c1b54cce6a78996bf16f84b9010b3980 1100w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qDZW1rlA9NxkJxo2/docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=1650&fit=max&auto=format&n=qDZW1rlA9NxkJxo2&q=85&s=e8d47364dae21860f34066324c0478a4 1650w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qDZW1rlA9NxkJxo2/docs/images/cdy7uua7fh8z/65Jx4W5oIZJyyvA8z4HqIx/0661b1a8ca6361c54fc4fef07ba59f0b/update-user.png?w=2500&fit=max&auto=format&n=qDZW1rlA9NxkJxo2&q=85&s=7aa9311ff1b35f825e850e6bd6348aa5 2500w" />
</Frame>

### Retrieve the form render code

Retrieve the form render code to visually render the form with a custom Post Login Action by following these steps:

* From the Form editor, select **`<> Render`**.
* Select **Copy**.

<Frame>
  <img src="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qYgaRCBOV0mMi9aI/docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?fit=max&auto=format&n=qYgaRCBOV0mMi9aI&q=85&s=90b8995411fddb0f50e004a2732e76cf" alt="Dashboard > Actions > Forms > Form > Embed" data-og-width="1400" width="1400" data-og-height="848" height="848" data-path="docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qYgaRCBOV0mMi9aI/docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=280&fit=max&auto=format&n=qYgaRCBOV0mMi9aI&q=85&s=a48a45f52ea8cf225af832353e9b6640 280w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qYgaRCBOV0mMi9aI/docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=560&fit=max&auto=format&n=qYgaRCBOV0mMi9aI&q=85&s=bd3e39e995d97b03a68eeb53e8353835 560w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qYgaRCBOV0mMi9aI/docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=840&fit=max&auto=format&n=qYgaRCBOV0mMi9aI&q=85&s=70af60ee98e187eec12a3f8f5d39351f 840w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qYgaRCBOV0mMi9aI/docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1100&fit=max&auto=format&n=qYgaRCBOV0mMi9aI&q=85&s=d92325c0786f3ccf7556357c7f50b4a7 1100w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qYgaRCBOV0mMi9aI/docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=1650&fit=max&auto=format&n=qYgaRCBOV0mMi9aI&q=85&s=ae627c702682e1b1d609fb57919604a5 1650w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/qYgaRCBOV0mMi9aI/docs/images/cdy7uua7fh8z/2EIUzc539sq9lwoTKbjoJv/496a864c0fc44a782c9cadca119dbfb0/embed.png?w=2500&fit=max&auto=format&n=qYgaRCBOV0mMi9aI&q=85&s=b01912c9cdd5116f0023e6a3b32b758d 2500w" />
</Frame>

## Create a Post Login Action

Create a post-login Action to render your form by following these steps:

1. Navigate to **Auth0 Dashboard > Actions > Flows > Login.**
2. Select the **+** icon and select **Build from scratch**:

   * **Name**: Enter `Render Progressive Profile Form`.
   * **Trigger**: Select `Login / Post Login`.
   * **Runtime**: Select the recommended version.
3. Select **Create**.

To configure the post-login Action:

1. Delete the existing code from the Code editor.
2. Paste the form embed code into the Code editor.
3. Edit the code to define the conditional logic that will render the form.

   ```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.stats.logins_count > 2 &&
       !event.user.user_metadata.company_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">
     The example code above will render the form when a user has a login count > 2 and is missing the user metadata company\_name and job\_title properties.
   </Callout>
4. Select **Deploy.**
5. Drag and Drop the **Render Progressive Profile Form** Action to the **Login** flow.

   <Frame>
     <img src="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/LgymarlLDzodE3XF/docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?fit=max&auto=format&n=LgymarlLDzodE3XF&q=85&s=98527de1fc30e538a93055e18c876bd6" alt="Dashboard > Forms > Use Cases Progressive Profile Login Action" data-og-width="1079" width="1079" data-og-height="524" height="524" data-path="docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/LgymarlLDzodE3XF/docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=280&fit=max&auto=format&n=LgymarlLDzodE3XF&q=85&s=b5ecdc251e659053d78f2f1cfa550415 280w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/LgymarlLDzodE3XF/docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=560&fit=max&auto=format&n=LgymarlLDzodE3XF&q=85&s=d835318fd80a6c4a070e0e9442715b6d 560w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/LgymarlLDzodE3XF/docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=840&fit=max&auto=format&n=LgymarlLDzodE3XF&q=85&s=4e9e4ae3eb5b0292e950b1e6e7596acf 840w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/LgymarlLDzodE3XF/docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=1100&fit=max&auto=format&n=LgymarlLDzodE3XF&q=85&s=c0196e9f55ae6629298a406e26dd4f19 1100w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/LgymarlLDzodE3XF/docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=1650&fit=max&auto=format&n=LgymarlLDzodE3XF&q=85&s=542c383f4e4a56ffc5e114eb3fe86ab0 1650w, https://mintcdn.com/docs-dev-privilege-worker-scope-pinning/LgymarlLDzodE3XF/docs/images/cdy7uua7fh8z/1QjjZdpTqTxx012UDN4xk9/99fba5ef4068a5688f1762eea7f42976/renderprogessiveprofile.png?w=2500&fit=max&auto=format&n=LgymarlLDzodE3XF&q=85&s=d33aa6d80052859480d0048a87df0fd5 2500w" />
   </Frame>
6. Select **Apply**.

### Test implementation

Test the implementation by following these steps:

1. Log in with an existing user whose login count is greater than 2 and their `user_metadata` attributes `company_name` and `job_title` have no values.
2. The post-login action in the Login flow will render the form and prompt for the information.
3. Select **Auth0 Dashboard > User Management > Users,** locate the user and verify that the `user_metadata` attributes `company_name` and `job_title` contain information.
