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.

1
2
3
4

CommentFileSizeAuthor
Image_4.jpg33.64 KBVasyOK
Image_3.jpg26.79 KBVasyOK
Image_2.jpg64.88 KBVasyOK
Image_1.jpg44.9 KBVasyOK
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VasyOK created an issue.

philiphart’s picture

I 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

kailashgajara’s picture

@VasyOk: Did you find any solution for this?

zwerg’s picture

Are there any solutions or patches for this issue yet?