[development] Awesome form building UI
Nedjo Rogers
nedjo at islandnet.com
Tue Apr 18 17:21:43 UTC 2006
> So....how come all these damn form builders are subscription-based
> proprietary bits of nonsense? Chris, what about gathering some funds to
> make a general purpose form building library, which can then be hooked
> into various open source systems underneath?
We could do this fairly handily using a combination of the wForms and Freja
libraries, both GPL. They're what drives:
http://www.formassembly.com/
Freja does client-side content generation with XSLT. wForms provides various
forms-related functionality--repeated form sections, client-side validation,
multiple pages, etc.
Sample form building interface (this UI isn't GPL):
http://www.formassembly.com/form-builder.php
The approach would be similar to what is done on formassembly, except that
we would use an XML encoding of our $forms arrays:
* serialize our $forms arrays as XML
* write XSL to render the form XML into wForms format
* build forms using wForms, updating XML dataset, which is then unserialized
into a $form array.
I've included a module for using wForms in Drupal in the Javascript Tools
package, http://drupal.org/node/57285. At Goodstorm we're using it to
produce a multi-page registration wizard.
More information about the development
mailing list