We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

Display Custom Fields in Registration Form based on Identity Management Template Variants

This guide explains how to display custom fields in the registration form based on different Identity Management template variants, utilizing multiple Show Form actions in Composer Experiences. The process involves adding all necessary custom fields to a custom form, and then using conditions based on content fields to control their display in different variants.

1. Add Custom Fields to the Custom Form

  • Navigate to the Custom Form:

    • Access Manage > Custom fields and locate the custom form that will be used.

  • Add All Custom Fields:

    • Ensure that all custom fields that need to be displayed across different variants are added to this form. This includes any fields that might only be relevant to specific variants. In our example, we'll be using the "Registration" form with 3 fields:

2. Set Conditions Based on Content Fields

  • Open the Template's Content Fields Section:

    • Go to the respective Identity Management template, add as many variants as needed and select "Edit all fields" to access the section where content fields are managed. In our example, we've added 2 variants to the template "Piano ID register page (1)":

  • Add a Condition for Each Content Field to the template's HTML:

    • Create conditions based on a content field to specify which custom fields should be displayed for each variant.

    • To prevent all custom fields from displaying universally, hide the standard custom fields section.

3. Create a Composer Experience that includes your desired segments and add a Show Form action card with the respective variant

In our example, if you were to target users in Chrome with the variant "V1" of the template, users would see this form:

CF3.png

Last updated: