From 4fd13fe35402f03c9d9681863e1be67096584709 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 24 Jan 2025 15:26:14 +1300 Subject: [PATCH] API Rename FormField Value to getFormattedValue --- src/Forms/TextCheckboxGroupField.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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')); } }