Dynamic messages
See original GitHub issueHi there! First of all, I would like to thank you guys for this incredible library - it really makes validation very easy.
Second, I would like to ask whether it’s possible to show message in more dynamic fashion?
The reason why I need is that I’m doing a uniqueness check making a backend call which returns a result with some data that should be used in error message.
I know that yup
allows you to define params that can be used in messages but it’s more static approach.
It would be really cool if we could provide a function as a message that would receive these params, validation results and a value in order to generate a desired error message.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Dynamic Messaging for eCommerce: Getting Started and ...
In other words, Dynamic Messages act as triggers that drive purchase behavior with visual cues that give customers more information about ...
Read more >The impact and importance of dynamic messaging - SMSGlobal
Dynamic SMS messaging allows you to send each customer personalised content with different images or links based on their expressed preferences ...
Read more >7 Dynamic Messages that Leverage Consumer Psychology for ...
Dynamic messages are “dynamic” because they auto-optimize based on the data of the customer. In other words, they use AI to test messages...
Read more >Dynamic Messaging for DNA - Fiserv
Expand relationships while enhancing service by using Dynamic Messaging for DNA from Fiserv to deliver real-time messages to your front-line staff.
Read more >Dynamic Messages - Gupshup
Dynamic messages are messages whose contents can be changed programmatically. The bot messages in the scripting tool are really templates. You can create ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ziflex no need to to be taht fancy.
this.createError
is provided in on the function context for customizing the rendered message, you can override or extend any of the values and return the error in the test.https://github.com/jquense/yup/blob/master/src/util/createValidation.js#L31
you can do that 👍