Add a Custom Field to the Flow

In order to capture custom data attributes not defined in the standard Janrain configuration, a new field definition must be added to the flow to ensure data consistency for the data being collected.

1. Add a New Schema Attribute

Before adding a new field to the flow, you must first add a new attribute to the underlying schema.

Add a new attribute using entityType.addAttribute.

Since validation will be primarily enforced via the flow, it is not necessary to strictly define the attribute in the schema.

The name of the new attribute will be used as the schemaAttribute in the field definition for the flow.

2. Add a New Field to the Flow

POST a new field definition to the flow using the localized field endpoint. This will allow you to specify all text in your default locale.

Request example: