Ash FrameworkAF
Ash Framework7mo ago
10 replies
aidalgol

Custom error strings

Some of the error messages that show up on form validation read a bit awkwardly in my opinion (such as "is required"), so I would like to provide my own. Is there any way to do this other than intercepting them in the CoreComponents.translate_error/1 function in the Phoenix 1.7 project template?
Solution
You can use the transform_errors option:
https://hexdocs.pm/ash_phoenix/AshPhoenix.Form.html
Was this page helpful?