Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sthomp10 on
Are there any modules are processing to sum totals in a webform? I need the form to perform simple calculations:
Adult Count ($90.00) Adult Total ______
Adult Count_2__ x $90.00 Adult Total_$180____
Adult Count ($90.00) Adult Total
2 $180.00
Child Count ($70.00) Child Total
2 $140.00
Total Fees $320.00
Comments
Computed Webform Elements
Sorry but I was wrong, 'Computed Field' module is not for Webforms.
Thanks
I will review.
If the question is still
If the question is still relevant then
I found that now the 'Webforms' module allow to create computed fields yourself.
There is available element's type called 'Computed Twig'.
This element use Twig functions and math operators for calculations.
In this video Jacob demonstrate this feature:
https://www.youtube.com/watch?v=rRlTTkwdP_o