Webform 8.x-5.x - Computed Elements

preview_player
Показать описание
This screencast walks through how to create a Webform computed element.
Рекомендации по теме
Комментарии
Автор

One other note, you need to be running Drupal 8.3.x or greater for this to work. The create_attribute() function that is use in the Twig in the Example: Elements Computed webform was added to the 8.3.x version. Otherwise you will get an error and the computation will not work.

frederickjohnh
Автор

I can't find an example for my case scenario: ie. I have a form that should calculate a sum of multiple options filled or checked in the form. The fields that need to be calculated should have a separate record with its specific price, visible or not. Let's say there is a starting price and each extra option has its own price. Those that are checked (radio or select) should be SUM calculated to the base price. I see it like adding a secret/hidden value to the options I need. Is it possible with this module? Thanks!

DroneMasterFilmariAeriene
Автор

For anyone else that previously have Webform Examples enabled and cannot find the "Example: Elements Computed" shown in the video, I had to uninstall the "Webform Examples" and then enable it. After clearing the registry it was listed with the other example webforms.

frederickjohnh
Автор

Webforms is a GREAT Drupal module and you, Jacob Rockowitz are a great developer. Thanks for your work!

Your videos could be much more helpful for me if I could understand more. My English is not so bad. Please try to speak a bit slower and well emphasized. Thank You!

mindw
Автор

Thnx for the video. I can do normal math calculation in computed field. For example sum, add, subtract etc.
But I want to do more advance like sqrt or square. How can I do that ?

engtushar
Автор

Thanks for the tutorial. Is it also possible to make a calculate, like the module webform calculator in drupal 7?

seppeclijsters
Автор

This is great! Going to see if I can use Webform computed elements to make custom Paypal donation buttons using the information submitted in the webform.

frederickjohnh
Автор

This is great. please help me with Twig code to sum a repeated field on a custom composite element.

babatundeoladada