Opened 9 years ago
Closed 5 years ago
#13673 closed enhancement (patchwelcome)
Asynchronous validation for ValidationTextBox
Reported by: | William Riley | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.13 |
Component: | Dijit - Form | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
In a lot of cases, you might want to validate a textbox against a datastore or some sort of backend, eg to make sure a username isn't taken. Currently ValidationTextBox only supports synchronous validation, which limits what you can do.
The only problem with implementing this sort of thing is that validation when submitting a form can't be done asynchronously, but I think in most cases, the async validation call will be fast enough that the validation can be done before the user has the chance to submit the form (or even have an argument specifically for doing synchronously). Another option is to just assume the field is invalid internally until the async validation has finished.
Change History (5)
comment:1 Changed 9 years ago by
Milestone: | tbd → future |
---|
comment:2 Changed 9 years ago by
Description: | modified (diff) |
---|
Note that FilteringSelect already does asynchronous validation, although as you mentioned there's an issue with submitting forms if the validation hasn't yet finished.
comment:3 Changed 7 years ago by
Owner: | Douglas Hays deleted |
---|---|
Status: | new → assigned |
comment:4 Changed 7 years ago by
Status: | assigned → open |
---|
comment:5 Changed 5 years ago by
Milestone: | future → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | open → closed |
This is something that we'll do for Dojo 2, but is done as much as it's going to get done for Dojo 1.x.
Waiting for a patch...