Closed steph643 closed 9 years ago
One remark: calling schemaContext.addInvalidKeys()
does not update {{valid}}
at the element level, but updates {{errorMessage}}
at the element level and {{invalidCount}}
at the block level.
Interesting. I'll have to build in a way to connect the {{valid}}
deps to Simple Schema. Shouldn't be too hard.
This should be fixed. Please test and let me know. Thanks!
It works well, except for the fact that it seems {{valid}}
now returns false when the form is valid and true when it is not :-)
Woops! Should be fixed.
Works well, thanks!
Here is my use case:
I have this field, where the user has to input the url of an image:
While the user is typing, in the background, I load the image to see if it of the right dimension (get the result asynchronously). If the result is not good, I would like to manually insert a custom error message in the 'pictureUrl' field.
I tried the following, but it doesn't update the display accordingly: