Before you start
- Make sure your tenant has a Custom Domain configured.
- Confirm you are using Universal Login for all signup and login prompts, and ensure the Customize Login Page toggle has been disabled for Login Prompts.
- Check that you have a Custom Page Template configured.
Use Cases
Customize Signup and Login Prompts supports two use cases: custom content and data capture. Custom content is static content like text, links, or images placed directly on the signup and login prompts. Data capture uses form elements dynamically added to the signup and login prompts, which is useful for collecting and validating user consent or user-produced data like surname. Data capture is available for database connections authenticated by password . When using a connection, data capture is available when authenticating by email or SMS one-time password. Passkeys and magic links are not yet supported.Only use Signup and Login Prompt Customizations to convey or collect sensitive or regulated data as permitted under your agreement with Okta.
Terminology
A prompt is a specific step in a given authentication flow. Each prompt has at least one screen and, depending on tenant configuration, each supported screen has either four or six entry points, which arelocations in the screen where custom code (partials) can be inserted. The following prompts can be customized:-
signup
-
signup-id
-
signup-password
-
login
-
login-id
-
login-password
-
login-passwordless
login-passwordless-sms-otp
login-passwordless-email-code
form-content-start
form-content-end
form-footer-start
form-footer-end
secondary-actions-start
secondary-actions-end

Use the Management API to Manage Partials
Partials can be a maximum of 10,000 characters and are managed by the Auth0 Management API at/v2/prompts/{prompts_name}/partials
. Every prompt must specify the Screen
when adding, updating, or deleting a partial. Below is an example call to view all existing partials for a prompt, noting that ulp-container
prefix is not required when referencing entry points in API calls.
auth0 ul customize
in your terminal.

Style and Validate Form Inputs
Customize Signup and Login Prompts offers pre-built styles and support for client-side validations for certain HTML form elements. The following elements are supported:<input type="text">
<input type="number">
<input type="checkbox">
<input type="password">
<input type="email">
<input type="tel">
<input type="url">
<select>
<textarea>
<div>
with the ulp-field
class. Similarly, add the ulp-error
class to the same <div>
to use pre-built error styles. If the ulp-error-info
element is present, a styled error message will also be displayed.
Client-Side Validation
The feature’s client-side validation framework allows customers to validate user input using HTML attributes to execute one or more custom validation functions. Validation functions can be included directly in the Partial or included in the<head>
of the page template.
To add client-side validation to a form element:
- Reference the validation function using the
data-ulp-validation-function
attribute on the<div class="ulp-error-info">
element. - Declare which DOM events the validation function should be run on using the
data-ulp-validation-event-listeners
attribute on the<div class="ulp-error-info">
element, noting that validations run automatically on submission. - For WCAG compliance, inputs must be programmatically linked to their error messages - for example, by using
aria-describedby="error-id"
andaria-invalid="true"
- to ensure screen readers announce validation errors.
Input Field Elements: Pre-built styling for input fields
Input Field Elements: Pre-built styling for input fields
Select Elements: Pre-built styling for select fields
Select Elements: Pre-built styling for select fields
Text Elements: Pre-built styling for text fields
Text Elements: Pre-built styling for text fields
Checkbox Elements: Pre-built styling for checkbox fields
Checkbox Elements: Pre-built styling for checkbox fields
Phone Number Validation: Client-Side Phone Number Validation
Phone Number Validation: Client-Side Phone Number Validation
Screen Reader Validation: Validation for accessible error messages
Screen Reader Validation: Validation for accessible error messages
Be cautious when using third-party JavaScript on your signup page. Sensitive security-related information often flows through the signup page, leaving it vulnerable to cross-site scripting.Whenever possible, Auth0 recommends validating user-provided data before submitting.
Localize Content
Partial content can be localized by defining new custom text variables using the Custom Text API. Up to thirty custom text variables can be defined per screen/language combination.Create or Update a Custom Text Variable
The Custom Text API is available here and each variable follows avar-<name>
naming convention. Calls to the API must specify the screen when adding, updating, or deleting a custom text variable. Markdown links are supported and are converted to HTML <a>
elements before being displayed to users.
Below is an example call to add a variable for the text of a terms of service checkbox label in English and Spanish. See the to learn more.
Use a Custom Text Variable in a Partial
Custom text variables are referenced in partials using theprompts.screen.text
object; the reference for the var-tos
example in the previous section is prompt.screen.texts.varTos
. See below for an example of how to use a previously created variable in a partial on the Signup ID Prompt, noting that the Management API’s var-tos
variable is referenced as varTos
in the partial.
Validate and Save Captured Data
Data captured by custom form elements is available in Actions, and Auth0 recommends that the collected data be validated.When using custom form elements, you must include the
ulp-
prefix with any input names to ensure the data can be used with Actions.event.request.body
. Customers can return a validation error by using the api.validation.error
function.
When using a database connection:
- Data from the Signup Prompts is accessible on the Pre User Registration trigger, and if a validation error is returned, the user is prevented from registering.
- Data from Login Prompts is accessible on the Post Login trigger, and if a validation error is returned, the validation error is forwarded to the customer’s application error page.
- Data from both the Signup and Login Prompts is accessible on the Post Login trigger, and if a validation error is returned, the validation error is forwarded to the customer’s application error page.
Sanitize any data that you collect on the form before saving or rendering it.
- Ensure any data being saved has passed through Liquid’s
{{escape}}
helper function - If you render data in an Email Template, remove Liquid syntax
- If you render data on a webpage, escape HTML entities
- If you save data to a database, use parameterized queries
- If you pass data into query string, encode with eg:
{{encodeURI}}
or{{encodeURIParam}}
Save to User Metadata
From the Action, captured data can be sent to an external API for validation and storage or saved inuser_metadata
on the user via api.user.setUserMetadata
.