RSS feed
  1. Improved validation
  2. WFF Tags
  3. Version 0.1.3 released
  4. Currently testing Form Validation
  5. Improved Setup
  6. A look at the WFF SOAP API
  7. Interesting Links
  8. Can't select text or highlight text in IE?
  9. Generate email forms
  10. Form Generator result page receives a facelift
  11. Creating good looking webforms
  12. Alternatives to WFF
  13. How WFF works
  14. A simple approach to web forms
  15. WFF source code location

Want More?

Back to WFF
WFF Google Group
WFF Tutorials

WFF Tags

/written 3902 days ago/

What are WFF Tags?
The WFF tag engine was introduced in version 0.1.3 and is quite similar to the tag engine in one of our favourite PHP Application: Textpattern. WFF tags are special HTML entities that you can place within your HTML form before you submit it to WFF for processing. Upon submission, these tags are then transformed into into something useful within the generated form.

Structure of a WFF Tag
All WFF tags must have the following stucture:

<wff:tag_name tag_options />


<wff:tag_name tag_options></wff:tag_name>

The wff: indicator ensures that the tag is recognized only by the WFF engine and that it is ignored by browsers and servers.

Purpose of WFF Tags
WFF tags are simply generic indicators that you place within your form, and which tell WFF that some special processing is required. WFF has an internal tag dictionary which lists the tags that WFF can recognize. When one of the tags in the dictionary is encountered within a form, WFF processes it and transforms it into a desired result. For example, the tag:

<wff:validation_errors />

is transformed into PHP code which display form errors if, for instance, an incomplete form containing mandatory fields is submitted by the end-user.

Tags can also allow the elimination of repetitive, tedious jobs. For example, the WFF tag engine could be programmed to recognize the following tag:

<wff:country_list />

and transform it into a drop down list containing all countries. This would save a lot of time wasted manually creating a ddlist of countries. As we add more tag to the WFF tag engine dictionary, one can easily see how WFF will become more and more powerful while keeping its original simplicity.

Tag development
For the moment, the WFF Team is responsible for expanding the tag vocabulary recognized by WFF. We however, intend, in the future to allow other developers to create their own tags and add them to the WFF Tag engine dictionary. Thus, this would allow developers to extend WFF’s functionality very easily.

What a great and decent idea to avoid defining yet another tag syntax and use an existing model which in turn borrows its initial ideas from XML.

Basically, Textpattern’s tag syntax is one of the two things I really like most about it (the other one being Textile, but that’s available elsewhere).

Robert Wetzlmayr    Aug 24, 11:42 PM    #

WFF looks to be the solution I have been dreaming of for months now. My first, and main questions is based on the programming operating system. I design and work solely on Macintosh platforms. I have read through your site and haven’t seen anything about system preferences, but I really wanted to ask if my working on a MAC would be an issue. Also, I checked out the link for Textpattern and although it referenced the MAC OS, I wanted to verify that it was compatible before investing the time and money to move forward… Please advise…


Andrew B. Clark    Dec 13, 04:24 AM    #
  Textile Help
About WFF

This is a weblog about the Web Form Factory (WFF) project and webforms in general.

Web Form Factory is an open source web form generator which automatically creates and binds the backend code for any form it is provided with.

WFF is based on the POG project, another open source code generator

Subscribe to our RSS feed

Feedback, feature requests, bugs to the WFF Google group

Send us a hello through email

Interesting Links
RSS feed requires MagpieRSS