FlevOOware - Home

DW Extensions ListExtensions

Support ForumForum

License Agreement

xe.com Universal Currency Converter

 

Extensions - Enable/Disable Form Objects

Version:

1.1.4 (dd. July 27, 2004)

Extension Type: Behavior Q and A: Read the FAQ
Download MXP: flevFormObjects114.mxp Nr. Downloads: 6894
DW Compatibility: DWMX, MX2004, DW8 Browsers: Internet Explorer 5+ Netscape 7+ Mozilla 1+ Opera 7+  
Description:

This behavior sets the availability of form objects (= controls) in a selected form, and it allows you to:

  • enable selected controls;
  • disable selected controls;
  • toggle the availability of selected controls (if the control was enabled it becomes disabled, and vice versa).

When filling out forms, there are sometimes form elements that need not (or even should not) be filled/activated depending on other values or choices in the form.
This extension allows you to disable form elements, so that the user can't activate them or enter text in them.

An example might be that the Submit button is disabled until the user makes a selection indicating that he/she agrees to the Terms and Conditions.
In this example the behavior would be applied twice to the page:

  1. to the onLoad event of the BODY tag to initially disable the Submit button (choose 'disable'),
  2. to the onClick event of the checkbox to toggle the availability of the Submit button (choose 'toggle').

 
Examples:
Screen Captures:

To topNaar boven

© 2003 FlevOOware :: Lisdodde 10 :: NL - 3892 AL Zeewolde :: tel. +31 36 5224326 :: info@flevooware.nl