- Issue created by @igorbiki
- π¨π¦Canada igorbiki
Oh, forgot to mention fields num1 and num2 are optional.
- Status changed to Needs work
12 days ago 1:27am 14 June 2024 - π§π·Brazil joaopauloc.dev
Hi @igorbiki thanks for reporting the issue.
I could reproduce the issue.
I added the unit test for the issue and also i'm adding the patch to fix it. - Status changed to Needs review
12 days ago 12:46pm 14 June 2024 - π¨π¦Canada igorbiki
This fixes optional fields vs required ones.
Even with the patch, if both input fields are on wizard's first page, and calculation field (sum) is on the second, the sum is empty.
This is how webform looks like:
- page 1
+ number field, first
+ number field, second
- page 2
+ calculation field, sum with ":first|0 + :second|0"Here is webform export as well, hope it helps.
- Status changed to Needs work
7 days ago 10:54pm 18 June 2024 - π§π·Brazil joaopauloc.dev
Thanks @igorbiki for the quick update.
I could reproduce the issue. I'll take a look.