Custom Error Messages Not Displaying in Validation Handler — Identity Portal
search cancel

Custom Error Messages Not Displaying in Validation Handler — Identity Portal

book

Article ID: 109893

calendar_today

Updated On:

Products

CA Identity Suite CA Identity Portal

Issue/Introduction

This article addresses an issue where custom error messages defined in the Validation Handler do not display correctly in the Identity Portal, defaulting instead to a generic "Validation Error" message.

Environment

Identity Portal 14.5 & 15

Cause

The issue occurs because the prop.error object is incorrectly used for custom messages in the Validation Handler. According to Identity Portal documentation, custom error messages must be handled using the prop.errors array.

Resolution

  1. Locate the Validation Handler code where the error message is defined.
  2. Remove any existing references to prop.error.
  3. Implement the custom error message using the prop.errors array. Use one of the following methods:
    • To push a new error: prop.errors.push("Your custom error message here");
    • To set the errors array directly: prop.errors = ['Your custom error message here'];
  4. Save and deploy the updated form handler.
  5. Clear the Identity Portal cache and refresh the task to verify that the custom message appears correctly.

Additional Information

For further information, see Identity Portal documentation:

For Identity Portal 14.5

Create Forms and Hotel Reservation Form Example

 

For Identity Portal v15

Create Forms and Hotel Reservation Form Example

 

To speak with a customer representative or a Support Engineer see Contact Support. Scroll to the bottom of the page and click on your respective region.