Missing data for empty fields in multistep webform

Created on 4 July 2023, 12 months ago
Updated 20 July 2023, 12 months ago

Problem/Motivation

I have created a multistep webform & I am accessing the data for submissions using $data = $submission->getData();
While submitting the webform, when I keep the name and basic address data type fields empty, then it's not showing in the $data. I have phone number fields whose data type is a text field and if I keep this field empty, it is shown in the $data .

Steps to reproduce

Create the multistep webform(3 or more pages).
add the Name & Basic address data type fields to the webform on all pages.
Create custom module.
Submit the webform. While submitting the webform, keep the name & address field values empty.
In the custom module, try to access the webform submission data using $data = $submission->getData();
For debugging dump($data) .
You will find that name & address fields are missing.

Note: In the reference image you can see the "seconday_social_insurance_number" field value is empty. Still it is showing but there are three more name fields which are missing as their values are empty.

🐛 Bug report
Status

Closed: cannot reproduce

Version

6.1

Component

Code

Created by

🇮🇳India gawalin

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

Comments & Activities

  • Issue created by @gawalin
  • Status changed to Postponed: needs info 12 months ago
  • 🇺🇸United States cilefen

    Please provide the YAML of a minimal form that exhibits the bug and the code implementation of the custom module.

  • Status changed to Closed: cannot reproduce 12 months ago
  • 🇺🇸United States jrockowitz Brooklyn, NY

    Please reopen when a minimal example webform can be provided

Production build 0.69.0 2024