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.
Hello, drupaler's!
I have form with conditionals like this.
Total formula calculated only after I press cursor to input field or reload the page.
Comment | File | Size | Author |
---|
Comments
Comment #2
philiphart CreditAttribution: philiphart as a volunteer commentedI experience a similar issue.
If a field is being used as the "Select field" for a webform calculation, then conditionals that assess the same field are not acted on until some other field on the page is changed by the user.
For example, I have a drop down box to select a donation amount on a webform. There is also a Conditional that sets the value of a Number field further down the page based on the donation amount the user selects. If this Donation Amount field is chosen as the "Select field for calculation" then the Conditional does not get acted on when the user changes the drop-down selection, but the Conditional does get acted on after the user changes some other field on the same page.
If the "Select field for the calculation" is changed to something else, then the Conditional gets applied immediately when the user changes the drop-down option.
Drupal 7.59
Webform 7.x-4.17
Webform Calculation Components: 7.x-2.0-rc1
Comment #3
kailashgajara CreditAttribution: kailashgajara commented@VasyOk: Did you find any solution for this?
Comment #4
zwerg CreditAttribution: zwerg commentedAre there any solutions or patches for this issue yet?