Forms
The forms API, which supports the form builder interface in the PingOne Admin Console, provides tools for administrators to create custom forms presented to users during the authentication workflow. This capability allows administrators to:
-
Define the interactive fields and the corresponding data to be collected during a registration or sign-on flow, which could include text inputs, checkboxes, dropdowns, and radio buttons.
-
Define the user experience that they want to deliver to the customer, such as field ordering, labeling, control over input validation and error feedback, and support for contextual or formatting items such as text (headers, explanatory text), and dividers.
The supported CUSTOM form type gives you the flexibility to create custom forms without having to write HTML. This type also allows the form to be built with fields that do not map specifically to PingOne directory attributes. You can create forms for registration, password reset, password recovery, and many other use cases.
Translatable keys
You can add translatable keys for any user-facing text in your forms, including the input field labels, button labels, and rich text. After adding these keys, the text can be translated based on the end user’s browser settings for preferred languages.
|
After you have added translatable keys, you must configure which languages are enabled for translation (refer to Language Management). |
Forms data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Date |
N/A |
Read-only |
The date the resouce was created (ISO-8061 format). |
|
String |
Required |
Mutable |
A string that specifies the type of form. Options are |
|
Integer |
Optional |
Mutable |
An integer that specifies the number of columns in the form (min = 1; max = 4). |
|
Object |
Required |
Mutable |
An object that specifies the form configuration elements. |
|
String |
Optional |
Mutable |
A string that specifies the description of the form. |
|
Object |
N/A |
Read-only |
An object that specifies the list of |
|
String |
N/A |
Read-only |
A string that specifies the environment’s unique identifier. |
|
Object |
Optional |
Read-only |
A read-only object that specifies the list of the |
|
String |
N/A |
Read-only |
A string that specifies the resource’s unique identifier. |
|
Object |
Optional |
Mutable |
An object that provides a map of i18n keys to their translations. This object includes both the keys and their default translations. The PingOne language management service finds this object, and creates the new keys for translation for this form. |
|
Boolean |
Required |
Mutable |
A boolean that specifies whether optional fields are highlighted in the rendered form. |
|
Boolean |
Required |
Mutable |
A boolean that specifies whether required fields are highlighted in the rendered form. |
|
Date |
N/A |
Read-only |
The time the resource was last updated. |
|
String |
Required |
Mutable |
A string that specifies the form name, which must be provided and must be unique within an environment. |
|
Boolean |
Required |
Mutable |
A boolean that specifies whether the password auto-complete feature is enabled. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether to return the password requirements during a DaVinci flow. A form with a new password field does not show the password policy information automatically in the response. To return the password policy information, the value of this property must be set to |
|
Boolean |
Required |
Mutable |
A boolean that specifies whether the text auto-complete feature is enabled. |
|
String |
Optional |
Mutable |
A string that specifies how to translate the text strings in the form. Options are |
Form components data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Object |
Required |
Mutable |
A list of form fields that specifies the form fields that make up the form. |
FormField data model
-
FormElementrepresents aFormFieldof typesTEXT,PASSWORD,RADIO,CHECKBOX,DROPDOWN,COMBOBOX. -
FormItemWithIconrepresents aFormFieldof typeSLATE_TEXTBLOB. -
FormElementPasswordVerifyrepresents aFormFieldof typePASSWORD_VERIFY. -
FormSubmitrepresents aFormFieldof typeSUBMIT_BUTTON. -
FormFlowLinkrepresentsFormFieldof typeFLOW_LINK. -
FormFlowButtonrepresents aFormFieldof typeFLOW_BUTTON. -
FormRecaptchaV2represents a FormField of typeRECAPTCHA_V2. -
FormQrCoderepresents aFormFieldof typeQR_CODE. -
FormPollingrepresents aFormFieldof typePOLLING. -
FormFIDO2represents aFormFieldof typeFIDO2. -
FormAgreementrepresents aFormFieldof typeAGREEMENT.
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Object |
Required |
Mutable |
An object containing field position information. |
|
Integer |
Required |
Mutable |
An integer that specifies the number of columns (min = 1; max = 4). |
|
Integer |
Required |
Mutable |
An integer that specifies the number of rows (maximum number is 50). |
|
Integer |
Optional |
Mutable |
An integer that specifies the width of the field (in percentage). |
|
String |
Required |
Mutable |
A string that specifies the type of the field. Options are |
|
Object |
Optional |
Mutable |
An object that specifies the visibility settings for a form field. |
|
String |
Optional |
Mutable |
A string that specifies the visibility behavior for the field. Options are |
|
String |
Optional |
Mutable |
A non-unique string associated with the field when visibility is evaluated by DaVinci at runtime. If the |
FormElement data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Boolean |
Optional |
Read-only |
A boolean that specifies whether the linked directory attribute is disabled. |
|
String |
Required |
Mutable |
A string that specifies a unique identifier for the |
|
String |
Optional |
Mutable |
A string that specifies the field’s label. |
|
String |
Optional |
Mutable |
A string that specifies how the label is rendered. Options are |
|
String |
Optional |
Mutable |
The layout orientation associated with the element. Options are |
|
Array[] |
Optional |
Mutable |
An array of strings that specifies the unique list of options. This is a required property when the type is |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether other options are available, enabling users to specify a custom value that is not one of the predefined options. This property is valid for |
|
String |
Optional |
Mutable |
A string that specifies the key associated with the other option. |
|
String |
Optional |
Mutable |
A string that specifies the label for a custom or "other" choice in a list. |
|
String |
Optional |
Mutable |
A string that specifies the label placeholder text for the other option. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the other option is disabled. |
|
Boolean |
Required |
Mutable |
A boolean that specifies whether the field is required. |
|
Object |
Optional |
Mutable |
An object containing validation data for the field. This is a required property when the type is |
|
String |
Optional |
Mutable |
A string that specifies a validation regular expression. The expression must be a valid regular expression string. This is a required property when the validation type is |
|
String |
Optional |
Mutable |
A string that specifies the validation type. Options are |
|
String |
Optional |
Mutable |
A string that specifies the error message to be displayed when the field validation fails. |
FormElementOption data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the label shown to the end user for this option. |
|
String |
Required |
Mutable |
A string that specifies the value of the field if this option is selected. |
FormItem data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Optional |
Mutable |
A string that specifies the field content. |
FormItemWithIcon data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the icon type. Options are |
|
String |
Required |
Mutable |
A string that specifies the icon size. Options are |
FormElementPasswordVerify data model
The FormElementPasswordVerify object is an extension of FormElement and contains all of the same fields in FormElement as well as those listed below.
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Optional |
Mutable |
A string that specifies the label for the verify password field. |
FormSubmit and FormFlowButton data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the button label. |
|
Integer |
Optional |
Mutable |
An integer that specifies the button width. |
|
Integer |
Optional |
Mutable |
An integer that specifies the button width unit. Options are |
|
String |
Optional |
Mutable |
A string that specifies the button alignment. Options are |
|
Object |
Optional |
Mutable |
A string that specifies the button padding. Options are |
|
Integer |
Optional |
Mutable |
A string that specifies the top padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the left padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the right padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the bottom padding. Value must be between -100 to 100. |
|
String |
Optional |
Mutable |
A string that specifies the button background color. The value must be a valid hexadecimal color. |
|
String |
Optional |
Mutable |
A string that specifies the button text color. The value must be a valid hexadecimal color. |
|
String |
Optional |
Mutable |
A string that specifies the button border color. The value must be a valid hexadecimal color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button is enabled. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button uses the default theme’s background color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button uses the default theme’s border color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button uses the default theme’s text color. |
FormLinkCustom data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the link label. |
|
String |
Optional |
Mutable |
A string that specifies the link alignment. Options are |
|
String |
Optional |
Mutable |
A string that specifies the link text color. The value must be a valid hexadecimal color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the link is enabled. |
|
Object |
Optional |
Mutable |
A string that specifies the link padding. Options are |
|
Integer |
Optional |
Mutable |
A string that specifies the top padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the left padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the right padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the bottom padding. Value must be between -100 to 100. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the default theme’s link color is enabled. |
FormReCAPTCHA V2 data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the reCAPTCHA size. Options are |
|
String |
Required |
Mutable |
A string that specifies the reCAPTCHA theme. Options are |
|
String |
Required |
Mutable |
A string that specifies the reCAPTCHA alignment. Options are |
FormQrCode data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the QR code alignment. Options are |
|
String |
Required |
Mutable |
A string that specifies the QR code size. Options are |
|
String |
Optional |
Mutable |
A string that specifies the text label for fallback under the QR code. |
FormPolling data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the polling activity indicator appearance. Options are |
|
String |
Required |
Mutable |
A string that specifies the polling activity indicator size. Options are |
FormFIDO2 data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the FIDO2 UI trigger type. Options are |
|
String |
Required |
Mutable |
A string that specifies the FIDO2 action. Options are |
|
String |
Required |
Mutable |
A string that specifies the text label for the FIDO2 button. |
SingleCheckbox data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the checkbox appearance. Options are |
|
String |
Optional |
Mutable |
A string that specifies the message to display if validation fails. |
|
String |
Required |
Mutable |
A string that specifies the type of field. Value should be set to |
FormAgreement data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the type of field. Value should be set to |
|
Boolean |
Required |
Mutable |
Specifies whether the title is enabled. |
|
String |
Optional |
Mutable |
An identifier that specifies the ID of the agreement. |
|
Boolean |
Optional |
Mutable |
An agreement option that specifies whether to use the agreement identified in the DaVinci form node. |
|
PingOne prevents the use of multiple |
FormSocialLoginButton data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the external identity provider name. |
|
String |
Required |
Mutable |
A string that specifies the external identity provider type. Options are |
|
String |
Required |
Mutable |
A string that specifies the external identity provider’s ID. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the external identity provider is enabled. |
|
String |
Optional |
Mutable |
A string that specifies the external edentity provider’s image icon URL. |
|
String |
Required |
Mutable |
A string that specifies the social login button label. |
|
String |
Optional |
Mutable |
A string that specifies the social login button alignment. Options are |
|
String |
Optional |
Mutable |
A string that specifies the social login button text color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the social login button is enabled. |
|
Integer |
Optional |
Mutable |
An integer that specifies the button width. |
|
Integer |
Optional |
Mutable |
An integer that specifies the button width unit. Options are |
|
Object |
Optional |
Mutable |
A string that specifies the button padding. Options are |
|
Integer |
Optional |
Mutable |
A string that specifies the top padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the left padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the right padding. Value must be between -100 to 100. |
|
Integer |
Optional |
Mutable |
A string that specifies the bottom padding. Value must be between -100 to 100. |
|
String |
Required |
Mutable |
A string that specifies the external identity provider type. Options are |
|
String |
Optional |
Mutable |
A string that specifies the button text color. The value must be a valid hexadecimal color. |
|
String |
Optional |
Mutable |
A string that specifies the button border color. The value must be a valid hexadecimal color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button is enabled. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button uses the default theme’s background color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button uses the default theme’s border color. |
|
Boolean |
Optional |
Mutable |
A boolean that specifies whether the button uses the default theme’s text color. |
|
Integer |
Optional |
Mutable |
An integer that specifies the button width. |
Response codes
| Code | Message |
|---|---|
200 |
Successful operation. |
201 |
Successfully created. |
204 |
Successfully removed. No content. |
400 |
The request could not be completed. |
401 |
You do not have access to this resource. |
403 |
You do not have permissions or are not licensed to make this request. |
404 |
The requested resource was not found. |