forms icon indicating copy to clipboard operation
forms copied to clipboard

Validator::formatMessage: support dynamic error messages

Open jtojnar opened this issue 5 years ago • 0 comments

This is useful when you want to show user an informative error message, whose text depends on some external data that depends on the value of some other field.

For example, my form allows user to choose a category of a team. Each category has a different limit for number of allowed members, which is specified in config.neon. I want to show the user the limit as part of the error message when she manages to exceed the limit.

  • new feature
  • BC break? no
  • doc PR: none yet

jtojnar avatar Apr 10 '19 21:04 jtojnar