Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Description
This module provides a "Percentage Calculation" component to webform-enabled
content types for Drupal 7. The content editor can add this component to their
webform, and select 2 other components (already added to the form) which are
the numerator and denominator of the built-in percentage calculation function.
The module then displays a dynamically updated percentage value while the data
entry user is filling in the form. This is achieved by adding some simple
(soon-to-be themeable) div-set markup + a hidden input field, both of which are
updated whenever the selected numerator/denominator components change.
I have borrowed heavily from http://drupal.org/project/webform_calculator to
write this (unfinished) module, after failing to make it work to meet my
immediate (client's) needs. My hope would be to merge with that project,
providing a generalized calculated-value component for the excellent Webform
module, with some display-side niceties for the js-loving set. If you're
interested in helping this effort, see Development notes in the README.txt.
Requirements
Drupal 7.x
Webform 3.x
jQuery Update 2.x-dev (jQuery 1.7)
Installation
- Copy the module into the appropriate sites/[sitename]/modules directory.
- Enable the module on the site.
- Create or edit an existing Webform-enabled node
- Create at least 2 textfield or number form components, and then add a "Percentage Calculation" component to the form.
- On the component configuration screen, specify the numerator component, denominator component, and precision.
- When viewing the Webform, you will see a "Percentage" labelled value (initially 0%) which updates automatically whenever you enter non-zero values in the 2 selected "numerator" and "denominator" components.
Project information
Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects- Project categories: Developer tools
- Created by spiderman on , updated

