Opened 11 years ago

Last modified 7 years ago

#13673 closed enhancement

Asynchronous validation for ValidationTextBox — at Version 2

Reported by: William Riley Owned by: Douglas Hays
Priority: high Milestone: 1.13
Component: Dijit - Form Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

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 (2)

comment:1 Changed 11 years ago by Douglas Hays

Milestone: tbdfuture

Waiting for a patch...

comment:2 Changed 11 years ago by bill

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.

Note: See TracTickets for help on using tickets.