diff --git a/src/Forms/TextCheckboxGroupField.php b/src/Forms/TextCheckboxGroupField.php index a922cdae..30a93737 100644 --- a/src/Forms/TextCheckboxGroupField.php +++ b/src/Forms/TextCheckboxGroupField.php @@ -93,7 +93,7 @@ public function performReadonlyTransformation() if ($titleField) { $field->replaceField('Title', LiteralField::create( 'Title', - $titleField->Value() + $titleField->getFormattedValue() )); } @@ -103,7 +103,8 @@ public function performReadonlyTransformation() if ($showTitle) { $field->replaceField('ShowTitle', LiteralField::create( 'ShowTitle', - $showTitle->Value() === 'Yes' ? $displayedText : $notDisplayedText + // Intentionally using getValue() instead of getFormattedValue() to get the raw value + $showTitle->getValue() === 'Yes' ? $displayedText : $notDisplayedText )->addExtraClass('show-title')); } }