Value is lost for cmrf_display fields when coming back from preview

Created on 16 May 2024, 6 months ago
Updated 9 September 2024, 2 months ago

Problem/Motivation

When coming back from the form preview to the form, the values of cmrf_display fields are lost.

Steps to reproduce

Configure a webform with formprocessor handler, a default value, and a cmrf_display field for this value. Enable preview. Load the form. Load the form preview. Go back to the form.

Proposed resolution

Set default values in form state storage and load those values in \Drupal\cmrf_form_processor\WebformSubmissionHandler::alterForm() when the form is marked as submitted.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024