diff --git a/code/UserForm.php b/code/UserForm.php index d0ef817..27cbeac 100644 --- a/code/UserForm.php +++ b/code/UserForm.php @@ -110,7 +110,6 @@ trait UserForm private static $defaults = [ 'Content' => '$UserDefinedForm', 'DisableSaveSubmissions' => 0, - 'OnCompleteMessage' => '
Thanks, we\'ve received your submission.
' ]; /** @@ -167,6 +166,15 @@ trait UserForm */ protected $fieldsFromTo = []; + /** + * @var array + */ + public function populateDefaults() + { + parent::populateDefaults(); + $this->OnCompleteMessage = '' . _t('SilverStripe\\UserForms\\Model\\UserDefinedForm.ONCOMPLETEMESSAGE', 'Thanks, we\'ve received your submission.') . '
'; + } + /** * @return FieldList */