Skip to content

Commit

Permalink
API Rename FormField Value to getFormattedValue
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 24, 2025
1 parent 36bc16b commit f2633f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Forms/TextCheckboxGroupField.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function performReadonlyTransformation()
if ($titleField) {
$field->replaceField('Title', LiteralField::create(
'Title',
$titleField->Value()
$titleField->getFormattedValue()
));
}

Expand All @@ -103,7 +103,7 @@ public function performReadonlyTransformation()
if ($showTitle) {
$field->replaceField('ShowTitle', LiteralField::create(
'ShowTitle',
$showTitle->Value() === 'Yes' ? $displayedText : $notDisplayedText
$showTitle->getValue() === 'Yes' ? $displayedText : $notDisplayedText
)->addExtraClass('show-title'));
}
}
Expand Down

0 comments on commit f2633f7

Please sign in to comment.