diff --git a/forms/CustomRequiredFields.php b/forms/CustomRequiredFields.php index 78547f336..86a2d52c0 100755 --- a/forms/CustomRequiredFields.php +++ b/forms/CustomRequiredFields.php @@ -65,7 +65,7 @@ class CustomRequiredFields extends RequiredFields{ if(!$data[$fieldName] || preg_match('/^\s*$/', $data[$fieldName])) { $this->validationError( $fieldName, - sprintf(_t('Form.FIELDISREQUIRED', "%s is required"), + sprintf(_t('Form.FIELDISREQUIRED', "%s is required."), $formField->Title()), "required" ); diff --git a/forms/RequiredFields.php b/forms/RequiredFields.php index f87acbc45..d2c3c9b5e 100755 --- a/forms/RequiredFields.php +++ b/forms/RequiredFields.php @@ -102,7 +102,7 @@ JS; $this->validationError( $fieldName, sprintf( - _t('Form.FIELDISREQUIRED'), + _t('Form.FIELDISREQUIRED').'.', strip_tags('"' . ($formField->Title() ? $formField->Title() : $fieldName) . '"') ), "required" diff --git a/forms/Validator.php b/forms/Validator.php index f1a2db77a..65f192648 100755 --- a/forms/Validator.php +++ b/forms/Validator.php @@ -145,7 +145,7 @@ abstract class Validator extends Object { } function requireField($fieldName, $data) { - if(!$data[$fieldName]) $this->validationError($fieldName, "$fieldName is required", "required"); + if(!$data[$fieldName]) $this->validationError($fieldName, "$fieldName is required.", "required"); } function includeJavascriptValidation() {