From 3f8c23eab13bf7977c9fc757dded23394a4d7b96 Mon Sep 17 00:00:00 2001 From: kenorb Date: Sun, 20 Aug 2017 18:52:29 +0100 Subject: [PATCH] Issue #2901761 by kenorb: Computed field fails to render a form in block --- src/Element/WebformComputedBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Element/WebformComputedBase.php b/src/Element/WebformComputedBase.php index 5d934279..a61f2cf9 100644 --- a/src/Element/WebformComputedBase.php +++ b/src/Element/WebformComputedBase.php @@ -71,7 +71,7 @@ abstract class WebformComputedBase extends FormElement { $value = static::processValue($element, $webform_submission);; // Display markup. - $element['value']['#markup'] = $value; + $element['value']['#children'] = $value; // Include hidden element so that computed value will be available to // conditions (#states). -- 2.14.1