Skip to content

Commit 655579f

Browse files
author
Mike van den Hoek
committed
(refactor): remove ucfirst when setting defaultValue of field when prefilled
1 parent e0de8d5 commit 655579f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PrefillGravityForms/Controllers/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected function handleFieldText(GF_Field $field, string $foundValue): void
203203
if ($this->isPossibleDate($foundValue)) {
204204
$field->defaultValue = (new DateTime($foundValue))->format('d-m-Y');
205205
} else {
206-
$field->defaultValue = ucfirst($foundValue);
206+
$field->defaultValue = $foundValue;
207207
}
208208

209209
$field->cssClass = 'owc_prefilled';

0 commit comments

Comments
 (0)