---
title: "How to add dynamic custom error messages"
canonical: "https://support.appfire.com/space/JSUCLOUD/2199978970/How%20to%20add%20dynamic%20custom%20error%20messages"
format: markdown
---
> Macro (aura-html)

This page explains when and how to add custom messages to your JSU validation rules.

You can add dynamic custom error messages to validation rules to help users resolve failed validation steps. There are two types of custom error messages: rule-level messages and branch-level messages.

### **Rule-level messages**

Add a rule-level error message to the general rule settings to provide more context for the error. If you leave this field empty, JSU will display a default message if the validation check fails.

**To add a rule-level message:**

1. In the *General* panel of the JSU Rule Builder - Validators, provide the message to display to users, for example, `Approver can’t be reporter`.
  If the validation check fails, the message displays during the transition. If there is no transition screen, the error message displays in a dialog at the bottom of the page.

### Branch-level messages

You can add error messages for individual branches in the rule to provide better context about which step failed a check. Error messages added to a branch apply to the branch, not individual validators.

**To add a branch-level message:**

1. Click the *Validator fails* error panel.
2. In the *Fail with message* panel, add the error message to display to users. This message displays instead of the rule-level message only when the associated validation check fails. If there is no transition screen, the error message displays in a dialog at the bottom of the page.