Webform multistep form (wizard) calculated field empty

Created on 7 May 2024, about 2 months ago
Updated 18 June 2024, 7 days ago

Problem/Motivation

Multistep webform calculation field not on the same page as input fields is always empty.

Steps to reproduce

If you create a two page (wizard) webform, and num1, num2 numeric fields on first page, and put a calculation field sum1 as (:num1 + :num2) on the second page, sum1 value will be empty.

Also, this introduces new potential issue, what if num1 is on page1, and num2 on page 2, and result sum1 on the second page as well.

Proposed resolution

The first issue (both num1 & num2 on page1, while sum1 on the second page) can be fixed by removing !empty condition for $value in validate function (FormCalculationElement.php).

It may require more code changes to fix num1 (page1) and num2 & sum1 (page2).

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada igorbiki

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024