diff --git a/app/code/Magento/Review/i18n/en_US.csv b/app/code/Magento/Review/i18n/en_US.csv index 36407ae341148..cb5452f2f0c39 100644 --- a/app/code/Magento/Review/i18n/en_US.csv +++ b/app/code/Magento/Review/i18n/en_US.csv @@ -132,3 +132,4 @@ Summary,Summary "Allow Guests to Write Reviews","Allow Guests to Write Reviews" Active,Active Inactive,Inactive +"Please select one of each of the ratings above.","Please select one of each of the ratings above." diff --git a/app/code/Magento/Review/view/frontend/templates/form.phtml b/app/code/Magento/Review/view/frontend/templates/form.phtml index 22031b3f3a20b..3594062a73524 100644 --- a/app/code/Magento/Review/view/frontend/templates/form.phtml +++ b/app/code/Magento/Review/view/frontend/templates/form.phtml @@ -35,7 +35,7 @@ id="escapeHtmlAttr($_rating->getRatingCode()) ?>_escapeHtmlAttr($_option->getValue()) ?>" value="escapeHtmlAttr($_option->getId()) ?>" class="radio" - data-validate="{required:true, messages:{required:'Please select one of each of the ratings above.'}}" + data-validate="{ 'rating-required':true}" aria-labelledby="escapeHtmlAttr($_rating->getRatingCode()) ?>_rating_label escapeHtmlAttr($_rating->getRatingCode()) ?>_escapeHtmlAttr($_option->getValue()) ?>_label" />