BreezingForms

From IT Wiki
Jump to: navigation, search

BreezingForms for WordPress is an enterprise featured form plugin for WordPress. From simple forms up to complex form applications.

Text read-only

To make a Textfield or Textarea element read-only, do the following:

  1. Go to the Advanced tab in the Textarea element.
  2. Choose Custom in the Initscript section.
  3. Check Form Entry and Page Entry (not sure if you need both but you do need at least one)
  4. Enter the following in the Create code framework box:
function ff_ElementName_init(element, condition)
{
    switch (condition) {
        case 'formentry':
element.readOnly = true;
            break;
        default:;
    } // switch
}
5. Change the "ElementName" to the name of the Textarea element.
6. That should be it.