Display macro result in error message

Is it possible to display the result of a macro in a validation error message in a similar way that we can display variables (e.g. %variable%). If not, is there a workaround for this?

A macro may not be used in text substitutions.

Two follow-up questions, @sergiy:

  1. Could you remind what type of text substitution is possible in error messages?
  2. Are there any technical limitations on what could be substituted into the error message?

Happy to discuss the second point offline.

See here.

Not sure about the ‘technical limitations’.

If the above reference doesn’t answer, please clarify what do you have in mind.