Opened 8 years ago

Closed 3 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 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 (5)

comment:1 Changed 8 years ago by Douglas Hays

Milestone: tbdfuture

Waiting for a patch...

comment:2 Changed 8 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.

comment:3 Changed 5 years ago by Douglas Hays

Owner: Douglas Hays deleted
Status: newassigned

comment:4 Changed 5 years ago by Douglas Hays

Status: assignedopen

comment:5 Changed 3 years ago by dylan

Milestone: future1.12
Resolution: patchwelcome
Status: openclosed

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.

Note: See TracTickets for help on using tickets.