3

Is there anyway to make the error message of a validation rule resolve to a custom label? The following url indicates that it's not possible, but I just wanted more verification:

https://developer.salesforce.com/forums/ForumsMain?id=906F00000009iptIAA

1 Answer 1

6

No, you can't. I think you have 2 options, depending on what exactly you want to do

  1. You can use the translation workbench to translate the error message (assuming that's what you're trying to accomplish.
  2. Handle the validation in a trigger, which then uses the custom label as the error message.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .