Custom error message for required field in Constellation (Pega v24.2.2)

Hi,

I’m working in Pega Infinity 24.2.2 using the Constellation architecture.

I have a field called “Account Type” that is marked as Required in the View configuration. If the user tries to submit the form without selecting a value, the default OOTB error message (e.g., "Account Type: Cannot be blank) is shown.

However, I want to override that default error message and display a custom message, such as:

Account Type is required

Is there a way in Constellation to override or replace the default required-field error message on submit with a custom one?

Should this be done through a Validation rule, or is there a configuration option in the View?

Thanks in advance!

@MaleeshaW a really good question! I’m investigating for you, will come back with a response.

My observations, testing even version '25 of Pega:

  1. Marking a field as required in the View takes precedence during validation on Submit
  2. In order to get a custom message, you need to remove “required” on the View and create a validation rule on the user action (flow action)
    1. However, it can’t be “mandatory”
    2. The validation condition must have “enable conditions” and an expression like ".accounttype == “” "

However, you wouldn’t want to configure this field by field (or flow action, validation rule by flow action, validation rule) so let me see if there is a way to configure the standard “value cannot be blank” message but likely answer is this is embedded as part of our design system.

@MaleeshaW

Can you try the design of Scenario 3 from below conversation

Form refresh settings: The artist formally known as “on change, run data transform..”