Error message can have tokens #14

Open
opened 2019-08-08 21:42:48 +00:00 by sinaru · 0 comments
sinaru commented 2019-08-08 21:42:48 +00:00 (Migrated from github.com)

Is your feature request related to a problem? Please describe.
Right now you can only give a static error message, if you want to override it. It would be good if we can put tokens in the error message.

E.g. You want to put the name of the field in the error message.
Hey your phone number is invalid.
But we also can set the name field using data-dyn-name attribute. We should be able to use this as a token in the message.
Hey your :name: is invalue. In this :name: is the token.

Describe the solution you'd like
see above

Describe alternatives you've considered
n/a

Additional context
n/a

**Is your feature request related to a problem? Please describe.** Right now you can only give a static error message, if you want to override it. It would be good if we can put tokens in the error message. E.g. You want to put the name of the field in the error message. `Hey your phone number is invalid`. But we also can set the name field using `data-dyn-name` attribute. We should be able to use this as a token in the message. `Hey your :name: is invalue`. In this `:name:` is the token. **Describe the solution you'd like** see above **Describe alternatives you've considered** n/a **Additional context** n/a
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sinaru/dynamo-forms#14
No description provided.