Skip to content

Validator::formatMessage: support dynamic error messages - #218

Open
jtojnar wants to merge 1 commit into
nette:masterfrom
jtojnar:dynamic-error-message
Open

Validator::formatMessage: support dynamic error messages#218
jtojnar wants to merge 1 commit into
nette:masterfrom
jtojnar:dynamic-error-message

Conversation

@jtojnar

Copy link
Copy Markdown
Contributor

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

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.
@jtojnar
jtojnarforce-pushed the dynamic-error-message branch from b789d86 to 78032f2CompareJuly 14, 2019 18:27
@dg
dgforce-pushed the master branch 4 times, most recently from 41ff307 to f03a237CompareNovember 19, 2019 15:43
@dg
dgforce-pushed the master branch 2 times, most recently from 341ed9a to 97e6400CompareDecember 11, 2019 19:43
@dg
dgforce-pushed the master branch 3 times, most recently from 9d62255 to ec59537CompareJanuary 2, 2020 16:48
@dg
dgforce-pushed the master branch 2 times, most recently from 21f7326 to 35f9b84CompareMarch 9, 2020 10:42
@dg
dgforce-pushed the master branch 4 times, most recently from dc0cb8f to dd11397CompareMarch 29, 2020 13:47
@dgdg added this to the v4.0 milestone Apr 20, 2020
@dg
dgforce-pushed the master branch 2 times, most recently from dd9d4ef to 458607dCompareMay 15, 2020 10:07
@dg
dgforce-pushed the master branch 2 times, most recently from 9c1d9cf to 12d238bCompareJune 5, 2020 13:20
@dg
dgforce-pushed the master branch 2 times, most recently from d5e7d21 to 6b69042CompareOctober 15, 2020 20:02
@dg
dgforce-pushed the master branch 5 times, most recently from a358616 to cfe069bCompareNovember 2, 2020 15:52
@dg
dgforce-pushed the master branch 8 times, most recently from ecebdcf to 081f2baCompareJanuary 11, 2021 01:04
@dg
dgforce-pushed the master branch 4 times, most recently from 38fe9e4 to 2fce9b9CompareJanuary 19, 2021 02:50
@dg
dgforce-pushed the master branch 7 times, most recently from 35f65de to 2a41d90CompareFebruary 11, 2021 02:17
@dg
dgforce-pushed the master branch 2 times, most recently from b77fbdd to 8c40db5CompareMarch 2, 2021 01:56
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jtojnar@dg