Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This project is abandoned!

See the replacement Webform Macro project at http://drupal.org/sandbox/vernond/1667748

No further development or support is offered for Webform Computed Component.

This module extends the Webform module and makes available a Computed Value Component which can receive a value from either a stand-alone mathematical calculation, a SELECT-CASE-DEFAULT value assignment, or from one of an IF-THEN-ELSE mathematical calculation.

Weborm Computed Component is kept in sync with the corresponding Webform 6.x-3.x and 7.x-3.x branches, do not use the master branch of this module.

In it's current state the module has a few limitations and frailties (see README.txt).

Computed component values are calculated in form weight sequence meaning that the calculation of ComponentB may be influenced by the outcome of ComponentA's calculation/value assignment.

ComponentA cannot reference ComponentB whilst ComponentB is further down the form tree, because ComponentB will not yet have been calculated and will therefore have an undefined value within the context of the calculation of ComponentA.

The module currently only supports computed, email, hidden, number, select (but not select multiple) and textfield components as input operands (also, optionally, user-specified values). Handling for date, grid, select multiple and time submission component value arrays for condition checking and calculations would probably need to be incorporated for this to become truly useful.

Project information