PHOCOA PHP Framework

WFForm Features

This page contains tests for various WFForm features. PHOCOA offers the following features for HTML Forms:

  • Multiple Button Support
    Forms can have multiple buttons, each routing automatically to distinct action methods.
  • AJAX Form Submission
    Degrades gracefully if Javascript not enabled
  • Normalized default button behavior
    PHOCOA allows you to choose the 'default' button that is used to submit a form that is submitted by a user's pressing enter in a text field. If your form has only one button, PHOCOA automatically ensures that your submit action method is called. If your form has more than one submit button, it is recommended that you set defaultSubmitID on the WFForm to guarantee which form button will be triggered. Since all browsers differ slightly in how they handle submit buttons, this normalization is very important to cross-platform consistency. This feature works with or without Javascript enabled on the client.
  • Duplicate Submission Prevention
    Useful for transaction-oriented forms.
  • Post-submit button label swap
    Convenient way to tell users to be patient.

Default Button Tests

When submitted, this form will show the button pressed to the right of the buttons.

The "Second Button" is set as the default button, and should appear when pressing ENTER in the text field.

The other buttons, when clicked, should also result in the correct button name being shown.

The First Button has both a postSubmitLabel and a duplicateSubmitMessage enabled.

The Second Button has a postSubmitLabel.



AJAX Default Button Tests

This is the same as the above test, but with a form where AJAX is used for all form submissions.



Examples

Cookbook
  Widgets
  Bindings
  Pagination
  Formatters

Basic Examples
  Email
  Skin Browser
  Forms
  Regex Tester

AJAX Examples
  Infrastructure

  (YUI Examples)
  AutoComplete
  ColorPicker
  Menu
  Tree View
  Tab View
  Container

Appcelerator Integration
  Demo
Copyright (c) 2014 Alan Pinstein. All Rights Reserved.