This project is not covered by Drupal’s security advisory policy.

Piecentage is an input widget replacement for a fieldset with number input fields. The new UI for this is a piechart built on the Raphaël JavaScript Library. The hidden number fields are updated as the size of the wedges changes and these are submitted. Due to the nature of the data this widget is designed to collect the total of all the number fields will add up to 100.

Interaction with the slices are through the mouse wheel (increase/decrease amount) or a single mouse click (increase amount only).

How to use

When enabled a fieldset in a webform shall have a new "Enable Piecentage" checkbox that will hide all number fields and inject the new UI widget at the top of the fieldset. Any non-number fields will appear after this UI widget.

When viewing the submitted form the fields are presented as the number fields and in the order listed on the webform edit screen.

TODO

  • D7 version. (The client is currently migrating to D7. Update to this soon.)
  • Add an option to allow the total to be set by the total of the values in the fields
  • Add an option to present the collected data as a piechart.

Developers

Project information

Releases