Contingent Submit

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Contingent Submit

Salamon Mark
I saw an example provided with OPS, Registration Form, that greys out the submit button until all required fields have values and all values are valid.  The coding for that, however, was fairly complex.  Is there a simpler way to simply say:  when there are no more errors on the page, then enable the submit button?


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Contingent Submit

Erik Bruchez
Administrator
Mark,

 > I saw an example provided with OPS, Registration Form, that greys
 > out the submit button until all required fields have values and all
 > values are valid.  The coding for that, however, was fairly complex.
 > Is there a simpler way to simply say: when there are no more errors
 > on the page, then enable the submit button?

The DMV Forms example detail page does this in a slightly better way,
by leveraging the same mechanism that can be used to display the error
summary (i.e. if there are no errors in the summary, then the button
can be enabled), but I would not qualify this as "easy". So for now,
you probalby have to go the "hard" way.

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws