Opened 8 years ago

Closed 8 years ago

#13847 closed enhancement (invalid)

Forms and form validation

Reported by: Paul Christopher Owned by: Paul Christopher
Priority: high Milestone: tbd
Component: DojoX Mobile Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

Based on an existing web application I would like to do a mobile app for the iPad using dojox.mobile and phonegap.

The web application contains quite a lot of forms. However dojox.mobile does not have the notion of a form.

Basically I need this:

  • A mechanism to check whether a form is valid, like dijit.Form.isvalid.
  • A way to highlight wrong entries with tooltips, like dijit.Form.validate does.
  • A way to restrict input in textboxes to numbers only (e.g. for currency) or a certain format with a regex (e.g. zip code / e-mail). Futhermore being able to set a custom validator would be fine in case I need to check the relation between different input elements, e.g. the sum of field 2 and 3 as always to be 100.

Related ticket maybe: http://bugs.dojotoolkit.org/ticket/13533. But I am not looking for a new widget but a logical way to group input elements (a form) and validate them, disable them, retrieve easily the value of all descendants / elements of a form (as dijit.form.getValue does so as to store the input locally on the device as JSON).

Change History (4)

comment:1 Changed 8 years ago by ykami

Owner: changed from ykami to Douglas Hays

comment:2 Changed 8 years ago by Douglas Hays

Oliver, why can't you use dijit.form.Form? It should work with mobile applications.

comment:3 Changed 8 years ago by Douglas Hays

Milestone: 1.8tbd
Owner: changed from Douglas Hays to Paul Christopher
Status: newpending

comment:4 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.